(values: np.array, axis: int = -1)
| 289 | |
| 290 | |
| 291 | def 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 | |
| 297 | def _mean_standard_deviation(proba: list) -> np.ndarray: |
no outgoing calls
no test coverage detected
searching dependent graphs…