shibing624 / pytextclassifier

pytextclassifier is a toolkit for text classification. 文本分类,LR,Xgboost,TextCNN,FastText,TextRNN,BERT等分类模型实现,开箱即用。
https://shibing624.github.io/pytextclassifier/
Apache License 2.0
482 stars 74 forks source link

svm遇到问题 #1

Closed LinckLinck closed 6 years ago

LinckLinck commented 6 years ago

你好,我在使用svm模型的时候遇到了无法解决的问题,报错入下。 AttributeError: predict_proba is not available when probability=False image 请问如何解决

shibing624 commented 6 years ago

已经解决,更新evaluate下的predict即可。详见最新代码,更新链接:https://github.com/shibing624/text-classifier/commit/c0f0b1882b9ec93110c438d3ed594dcc4782c575