Skip to content
项目

关于

使用 Python、R、Haskell 和 MATLAB / Octave 实现的机器学习评估指标

机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Note: the current releases of this toolbox are a beta release, to test working with Haskell's, Python's, and R's code repositories.

Build Status

Metrics provides implementations of various supervised machine learning evaluation metrics in the following languages:

  • Python easy_install ml_metrics
  • R install.packages("Metrics") from the R prompt
  • Haskell cabal install Metrics
  • MATLAB / Octave (clone the repo & run setup from the MATLAB command line)

For more detailed installation instructions, see the README for each implementation.

EVALUATION METRICS

Evaluation MetricPythonRHaskellMATLAB / Octave
Absolute Error (AE)✓✓✓✓
Average Precision at K (APK, AP@K)✓✓✓✓
Area Under the ROC (AUC)✓✓✓✓
Classification Error (CE)✓✓✓✓
F1 Score (F1) ✓
Gini ✓
Levenshtein✓ ✓✓
Log Loss (LL)✓✓✓✓
Mean Log Loss (LogLoss)✓✓✓✓
Mean Absolute Error (MAE)✓✓✓✓
Mean Average Precision at K (MAPK, MAP@K)✓✓✓✓
Mean Quadratic Weighted Kappa✓✓ ✓
Mean Squared Error (MSE)✓✓✓✓
Mean Squared Log Error (MSLE)✓✓✓✓
Normalized Gini ✓
Quadratic Weighted Kappa✓✓ ✓
Relative Absolute Error (RAE) ✓
Root Mean Squared Error (RMSE)✓✓✓✓
Relative Squared Error (RSE) ✓
Root Relative Squared Error (RRSE) ✓
Root Mean Squared Log Error (RMSLE)✓✓✓✓
Squared Error (SE)✓✓✓✓
Squared Log Error (SLE)✓✓✓✓

TO IMPLEMENT

  • F1 score
  • Multiclass log loss
  • Lift
  • Average Precision for binary classification
  • precision / recall break-even point
  • cross-entropy
  • True Pos / False Pos / True Neg / False Neg rates
  • precision / recall / sensitivity / specificity
  • mutual information

HIGHER LEVEL TRANSFORMATIONS TO HANDLE

  • GroupBy / Reduce
  • Weight individual samples or groups

PROPERTIES METRICS CAN HAVE

(Nonexhaustive and to be added in the future)

  • Min or Max (optimize through minimization or maximization)
  • Binary Classification
    • Scores predicted class labels
    • Scores predicted ranking (most likely to least likely for being in one class)
    • Scores predicted probabilities
  • Multiclass Classification
    • Scores predicted class labels
    • Scores predicted probabilities
  • Regression
  • Discrete Rater Comparison (confusion matrix)

探索相关项目

加载中…