MCPcopy
hub / github.com/hyperopt/hyperopt / logsum_rows

Function logsum_rows

hyperopt/tpe.py:253–255  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

251
252
253def logsum_rows(x):
254 m = x.max(axis=1)
255 return np.log(np.exp(x - m[:, None]).sum(axis=1)) + m
256
257
258@scope.define

Callers 2

GMM1_lpdfFunction · 0.85
LGMM1_lpdfFunction · 0.85

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected