(self, y, y_pred)
| 51 | |
| 52 | class CrossEntropyLoss: |
| 53 | def __call__(self, y, y_pred): |
| 54 | eps = np.finfo(float).eps |
| 55 | return -np.sum(y * np.log(y_pred + eps)) |
| 56 | |
| 57 | def base_estimator(self): |
| 58 | return ClassProbEstimator() |
nothing calls this directly
no outgoing calls
no test coverage detected