简体   繁体   中英

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. My Accuracy, Precision, Recall RMSE, and MAE values are the same for SVM, Naive Bayes, and Random Forest. Is it possible or is there any mistake? Btw, I am using Python.

Thank you.

Try setting average='weighted' for precision/recall and you should see some different values:

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

I am not sure it is available for the other metrics.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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