-
Notifications
You must be signed in to change notification settings - Fork 136
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
模型预测结果不正确 #7
Comments
你设置的参数问题很大。 |
还是不行,我使用的数据集,正类830个,负类830个,70维。 同样的参数(sklearn库中的随机森林): 唯一让我很疑惑的是,为什么训练集作为测试集的时候,随机森林预测准确度还不是100%。 |
麻烦发一下样本集。 |
非常感谢,已发送 [email protected] 邮箱,请注意查收。 |
非常感谢,我重新验证了一下自己的python程序,发现了我程序中的bug。 |
可视化图请问是如何实现的?谢谢 |
@SihanMA 用的是seaborn可视化库 |
我使用其他的数据集,无论是使用全部特征还是sqrt求出的特征,又或者是使用全部特征的单个决策树,预测结果都很差,尤其是训练集作为测试集,预测只有60%多。
参数:
clf = RandomForestClassifier(n_estimators=1,
max_depth=-1,
min_samples_split=2,
min_samples_leaf=1,
min_split_gain=0.0,
colsample_bytree=70,
subsample=1.0,
random_state=66)
train_count = int(0.7 * len(df))
下面是预测的结果。
0.6125
0.2375
The text was updated successfully, but these errors were encountered: