Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ score
Method
score
supervised_class/dt.py:178–180 ·
view source on GitHub ↗
(self, X, Y)
Source
from the content-addressed store, hash-verified
176
return
self.root.predict(X)
177
178
def
score(self, X, Y):
179
P = self.predict(X)
180
return
np.mean(P == Y)
181
182
183
if
__name__ ==
'__main__'
:
Callers
1
dt.py
File · 0.45
Calls
1
predict
Method · 0.95
Tested by
no test coverage detected