【ML】Metrics

2023-04-12  本文已影响0人  盐果儿

Metric of Machine Learning

Accuracy

\text{Accuracy} = \frac{\text{Number of correctly classified instances}}{\text{Total number of instances}}

from sklearn.metrics import accuracy_score

accuracy = accuracy_score(y_test, y_pred)


A confusion matrix is not a metric in machine learning, but it is a useful tool for understanding the performance of a classification model and calculating evaluation metrics.

Precision

Recall

F1-score

ROC-AUC score

Mean Squared Error

Root Mean Squared Frror

R-squared score

Log loss

Metrics of Knowledge Graph Embedding:

HITS@1

HITS@3

HITS@10

HIT(Hit Rate,HR)命中率:它反映的是在推荐序列中是否包含了用户真正点击的item。

MR

MRR(Mean Reciprocal Rank,MRR)平均倒数排名,该指标反应的是我们找到的这些item是否摆在用户更明显的位置,强调位置关系,顺序性。

上一篇 下一篇

猜你喜欢

热点阅读