Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes for test() in adaboost.py #487

Merged
merged 1 commit into from
Mar 15, 2019
Merged

Conversation

yiran02
Copy link
Contributor

@yiran02 yiran02 commented Mar 15, 2019

ada_boost_train_ds()得到的agg_class_est是一个m*1维的矩阵,需对其转置后再进行argsort()等一系列操作。
另一种较繁琐的方法是修改plot_roc(pred_strengths, class_labels)
sorted_indicies = pred_strengths.argsort(axis=0)
同时在索引循环那改成
for index in sorted_indicies.tolist():
if class_labels[index[0]] == 1.0:

@jiangzhonglian jiangzhonglian merged commit c432b04 into apachecn:dev Mar 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants