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

SecretPad逻辑回归预测结果异常 #170

Closed
Inclay97 opened this issue Nov 25, 2024 · 9 comments
Closed

SecretPad逻辑回归预测结果异常 #170

Inclay97 opened this issue Nov 25, 2024 · 9 comments
Assignees

Comments

@Inclay97
Copy link

Issue Type

Install/Deploy

Have you searched for existing documents and issues?

Yes

OS Platform and Distribution

Linux version 4.19.90-52.40.v2207.ky10.x86_64 (KYLINSOFT@f4c0be98561f) (gcc version 7.3.0 (GCC)) #3 SMP Wed Jul 24 15:07:09 CST 2024

All_in_one Version

SecretPad All In One v1.9.0

Module type

secretflow

Module version

SecretPad All In One v1.9.0

What happend and What you expected to happen.

能够正常运行得到结果,但在使用逻辑回归模型训练并预测二分类问题时(0,1)得到的预测结果却为0.5

Log output.

能够正常运行得到结果,但在使用逻辑回归模型训练并预测二分类问题时(0,1)得到的预测结果却为0.5
@Inclay97
Copy link
Author

image
训练流

@Inclay97
Copy link
Author

分箱操作内容:
image

逻辑回归训练参数
image

@Inclay97
Copy link
Author

数据集
heart.csv

@Inclay97
Copy link
Author

预测结果
image

@zimu-yuxi
Copy link

尝试将逻辑回归的训练批数据量改为10后重新进行模型训练,然后发布模型,再次预测一下

@zimu-yuxi zimu-yuxi self-assigned this Nov 26, 2024
@Inclay97
Copy link
Author

image
改了之后,结果如上,为何预测结果不会是0或1,而是一个概率值

@zimu-yuxi
Copy link

模型的预测值可以简单表示为特征值和系数的点乘再加上偏置,可以看下这里

@Inclay97
Copy link
Author

那以上预测结果是没有问题的,且我可以理解成 预测值大于0.5的为正类,小于0.5的为负类吗?

@zimu-yuxi
Copy link

是的

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

No branches or pull requests

2 participants