MCPcopy Create free account
hub / github.com/modAL-python/modAL / predict

Method predict

tests/example_tests/multidimensional_data.py:16–17  ·  view source on GitHub ↗
(self, X)

Source from the content-addressed store, hash-verified

14 return self
15
16 def predict(self, X):
17 return np.random.randint(0, self.n_classes, shape=(len(X), 1))
18
19 def predict_proba(self, X):
20 return np.ones(shape=(len(X), self.n_classes))/self.n_classes

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected