-
Notifications
You must be signed in to change notification settings - Fork 179
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
predict_proba() #1
Comments
一般来说predict_proba 输出的形式如下
行是sample的个数,每一行为一个样本的预测概率,第0列是label = neg的概率,第1列是label = pos的概率,这里需要的只是pos的概率,所以输出所有样本第一列的概率咯。你可以把后面那个去掉看看结果。 |
懂了,您这里指得是二分类; |
一列是取0的概率一列是取1的概率
… 在 2017年11月3日,13:25,971456267 ***@***.***> 写道:
clf.predict_proba(X_test)[:,1] ##预测概率请问为什么这里的概率是第一列的概率呢?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#1>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AQ2TnIwSKxzI45c1uQtESo-cpmOCs87cks5syqPJgaJpZM4QQqyi>.
|
可能会有,但效果估计不会太好
… 在 2017年11月3日,14:38,971456267 ***@***.***> 写道:
懂了,您这里指得是二分类;
还想请教一下对于多分类而言,调节min_child_weight,scale_pos_weight这两个参数会对类别不平衡有帮助么?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#1 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AQ2TnEQ_7yUNF6UBI1qLWqlxxJVRn87Hks5syrTngaJpZM4QQqyi>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
clf.predict_proba(X_test)[:,1] ##预测概率请问为什么这里的概率是第一列的概率呢?
The text was updated successfully, but these errors were encountered: