简体   繁体   English

SVM、朴素贝叶斯和随机森林的准确度、精确度、召回率 RMSE 和 MAE 值相同

[英]Accuracy, Precision, Recall RMSE and MAE values are same for SVM, Naive Bayes and Random Forest

I am studying on sentiment analysis of tourist reviews.我正在研究旅游评论的情感分析。 90% of reviews are positive the rest are negative. 90% 的评论是正面的,其余的都是负面的。 My Accuracy, Precision, Recall RMSE, and MAE values are the same for SVM, Naive Bayes, and Random Forest.对于 SVM、朴素贝叶斯和随机森林,我的准确度、精确度、召回 RMSE 和 MAE 值是相同的。 Is it possible or is there any mistake?有没有可能或者有什么错误? Btw, I am using Python.顺便说一句,我正在使用 Python。

Thank you.谢谢你。

Try setting average='weighted' for precision/recall and you should see some different values:尝试为精度/召回率设置average='weighted' ,您应该会看到一些不同的值:

https://scikit-learn.org/stable/modules/generated/sklearn.metrics.precision_score.html https://scikit-learn.org/stable/modules/generated/sklearn.metrics.precision_score.html

I am not sure it is available for the other metrics.我不确定它是否适用于其他指标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM