我是 Python 和机器学习的新手。根据我的要求,我正在尝试对我的数据集使用朴素贝叶斯算法。
我能够找出准确度,但试图找出相同的精确度和召回率。但是,它抛出以下错误:
"choose another average setting." % y_type)
ValueError: Target is multiclass but average='binary'. Please choose another average setting.
任何人都可以建议我如何进行。我尝试在精度和召回分数中使用平均 ='micro'。它没有任何错误,但它在准确性、精确度和召回方面给出了相同的分数。
我的数据集:
train_data.csv:
review,label
Colors & clarity is superb,positive
Sadly the picture is not nearly as clear or bright as my 40 inch Samsung,negative
测试数据.csv:
review,label
The picture is clear and beautiful,positive
Picture is not clear,negative
撒科打诨
相关分类