SMO confidence measure in weka

*爱你&永不变心* 提交于 2019-11-30 15:23:00

Ok I figured out how to get this in case it might help someone. Get the source code for SMO.java and add it to your package. Resolve imports if any. Set m_fitLogisticModels to true. Change smo.buildClassifier(train, cl1, cl2, false, -1, -1); to smo.buildClassifier(train, cl1, cl2, true, -1, -1);. And viola ! distributionForInstance returns confidence scores instead of a hard 0/1.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!