Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
_train
Method · 0.95
clasifier
Function · 0.45
train
Method · 0.45
play
Method · 0.45
_predict
Method · 0.45
test_linear
Function · 0.45
test_mlp
Function · 0.45
test_knn
Function · 0.45
test_linear_model
Function · 0.45
test_random_forest
Function · 0.45
test_svm_classification
Function · 0.45
test_mlp
Function · 0.45
Calls
1
predict_row
Method · 0.95
Tested by
12
clasifier
Function · 0.36
test_linear
Function · 0.36
test_mlp
Function · 0.36
test_knn
Function · 0.36
test_linear_model
Function · 0.36
test_random_forest
Function · 0.36
test_svm_classification
Function · 0.36
test_mlp
Function · 0.36
test_gbm
Function · 0.36
test_naive_bayes
Function · 0.36
test_knn
Function · 0.36
test_PCA
Function · 0.36