Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/modAL-python/modAL
/ fit
Method
fit
tests/example_tests/multidimensional_data.py:13–14 ·
view source on GitHub ↗
(self, X, y)
Source
from the content-addressed store, hash-verified
11
self.n_classes = n_classes
12
13
def
fit(self, X, y):
14
return
self
15
16
def
predict(self, X):
17
return
np.random.randint(0, self.n_classes, shape=(len(X), 1))
Callers
1
bagging.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected