MCPcopy Index your code
hub / github.com/rushter/MLAlgorithms / predict

Method predict

mla/ensemble/tree.py:202–206  ·  view source on GitHub ↗
(self, X)

Source from the content-addressed store, hash-verified

200 return self.outcome
201
202 def predict(self, X):
203 result = np.zeros(X.shape[0])
204 for i in range(X.shape[0]):
205 result[i] = self.predict_row(X[i, :])
206 return result

Callers 15

_trainMethod · 0.95
clasifierFunction · 0.45
trainMethod · 0.45
playMethod · 0.45
_predictMethod · 0.45
test_linearFunction · 0.45
test_mlpFunction · 0.45
test_knnFunction · 0.45
test_linear_modelFunction · 0.45
test_random_forestFunction · 0.45
test_svm_classificationFunction · 0.45
test_mlpFunction · 0.45

Calls 1

predict_rowMethod · 0.95

Tested by 12

clasifierFunction · 0.36
test_linearFunction · 0.36
test_mlpFunction · 0.36
test_knnFunction · 0.36
test_linear_modelFunction · 0.36
test_random_forestFunction · 0.36
test_svm_classificationFunction · 0.36
test_mlpFunction · 0.36
test_gbmFunction · 0.36
test_naive_bayesFunction · 0.36
test_knnFunction · 0.36
test_PCAFunction · 0.36