Skip to content

Commit

Permalink
Merge pull request apachecn#519 from cclauss/patch-3
Browse files Browse the repository at this point in the history
roc_test.py: import numpy as np
  • Loading branch information
jiangzhonglian authored May 22, 2019
2 parents ded207f + c649cb6 commit 0904864
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/py3.x/ml/7.AdaBoost/roc_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import numpy as np


def test():
# D = np.mat(np.ones((5, 1)) / 5)
# data_mat, class_labels = load_sim_data()
Expand All @@ -22,4 +25,4 @@ def test():
print(m,
err_arr[predicting10 != np.mat(label_arr_test).T].sum(),
err_arr[predicting10 != np.mat(label_arr_test).T].sum() / m
)
)

0 comments on commit 0904864

Please sign in to comment.