Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ fit
Method
fit
supervised_class/knn_vectorized.py:23–25 ·
view source on GitHub ↗
(self, X, y)
Source
from the content-addressed store, hash-verified
21
self.k = k
22
23
def
fit(self, X, y):
24
self.X = X
25
self.y = y
26
27
def
predict(self, X):
28
N = len(X)
Callers
1
knn_vectorized.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected