MCPcopy Create free account
hub / github.com/modAL-python/modAL / entropy_sum

Function entropy_sum

modAL/dropout.py:291–294  ·  view source on GitHub ↗
(values: np.array, axis: int = -1)

Source from the content-addressed store, hash-verified

289
290
291def entropy_sum(values: np.array, axis: int = -1):
292 # sum Scipy basic entropy function: entr()
293 entropy = entr(values)
294 return np.sum(entropy, where=~np.isnan(entropy), axis=axis)
295
296
297def _mean_standard_deviation(proba: list) -> np.ndarray:

Callers 2

_entropyFunction · 0.85
_bald_divergenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…