橙色logistic回归不返回系数

2024-06-25 23:59:38 发布

您现在位置:Python中文网/ 问答频道 /正文

从Orange docs(http://docs.orange.biolab.si/reference/rst/Orange.classification.logreg.html)中,我试图复制这部分代码的结果:

进口橙

泰坦尼克号=橙色.data.Table(“泰坦尼克号”) lr=橙色.classification.logreg.LogRegLearner(泰坦尼克号)

计算分类精度

正确=0.0 对于泰坦尼克号中的ex: 如果lr(ex)==例如getclass(): 正确+=1 打印“分类精度:”,正确/长度(泰坦尼克号) 橙色.classification.logreg.卸载(lr)

结果我只得到了“分类准确度”,什么都没有。我想得到的是回归系数,但是橙色.classification.logreg.dump(lr)不返回任何内容。在

谢谢,彼得


Tags: httpdocs分类精度rstex橙色reference