Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ddbourgin/numpy-ml
/ base_estimator
Method
base_estimator
numpy_ml/trees/losses.py:57–58 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
55
return
-np.sum(y * np.log(y_pred + eps))
56
57
def
base_estimator(self):
58
return
ClassProbEstimator()
59
60
def
grad(self, y, y_pred):
61
eps = np.finfo(float).eps
Callers
1
fit
Method · 0.95
Calls
1
ClassProbEstimator
Class · 0.85
Tested by
no test coverage detected