• Stars
    star
    1,606
  • Rank 29,137 (Top 0.6 %)
  • Language
    Python
  • License
    Other
  • Created over 12 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Machine learning evaluation metrics, implemented in Python, R, Haskell, and MATLAB / Octave

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)

More Repositories

1

hillary-clinton-emails

Code to transform Hillary's emails from raw PDF documents to a SQLite database
Python
164
star
2

MachineLearning.jl

Julia Machine Learning library
Julia
116
star
3

Air-Quality-Prediction-Hackathon-Winning-Model

Contains the code for the model that won Kaggle's Air Quality Prediction Hackathon
MATLAB
89
star
4

FacebookRecruitingCompetition

Code to create benchmarks for Kaggle's Facebook Recruiting Competition
Python
84
star
5

Stack-Overflow-Competition

Benchmarks for Kaggle's Predict Closed Questions on Stack Overflow competition
Python
56
star
6

ASAP-AES

Evaluation Metrics for the Hewlett Foundation's Automated Essay Scoring competition
Python
37
star
7

ExpediaPersonalizedSortCompetition

Transformation and benchmark code for Expedia's Personalized Sort Kaggle Competition
Python
36
star
8

Kdd2013AuthorPaperIdentification

Benchmark and sample code for the Author Paper Identification Challenge on Kaggle, a part of the 2013 KDD Cup
Python
34
star
9

JobSalaryPrediction

Python
34
star
10

nips-papers

Python
29
star
11

CauseEffectPairsChallenge

Benchmark and sample code for the Cause Effect Pairs Challenge on Kaggle
Python
21
star
12

BioResponse

Benchmarks for Boehringer-Ingelheim's Predicting a Biological Response Competition, hosted by Kaggle
Python
17
star
13

BluebookForBulldozers

Python
16
star
14

2016-us-election

Makefile
16
star
15

GEFlightQuest

Data transformation code and benchmarks for GE Flight Quest
Python
13
star
16

crowdflower-airline-twitter-sentiment

Makefile
12
star
17

nips-2015-papers

Python
11
star
18

ASAP-SAS

Sample code for the short answer scoring contest, hosted by Kaggle
Python
9
star
19

emvic

Kaggle's Eye Movements Identification and Verification Competition
Python
8
star
20

EventRecommendationChallenge

Sample code for Kaggle's Event Recommendation Challenge
Python
8
star
21

crowdflower-first-gop-debate-twitter-sentiment

Makefile
7
star
22

icml2013preview

ICML 2013 Accepted Papers Preview
Python
7
star
23

health-insurance-marketplace

Makefile
7
star
24

us-college-scorecard

Python
6
star
25

GEFlight2BasicAgents

Code to create a simple sample submission for GE Flight Quest Phase 2: Flight Optimization
Python
5
star
26

baseball

Makefile
5
star
27

awic2012

Benchmark for Kaggle's ICFHR 2012 Arabic Writer Identification challenge
4
star
28

sf-salaries

Python
4
star
29

XSV.jl

CSV, TSV, etc. streaming and batch parser
Julia
4
star
30

Koalas

C# DataFrame
C#
4
star
31

icdm-2015-drawbridge-cross-device-connection

R
3
star
32

GribDotNet

FSharp library for reading Grib2 files
F#
3
star
33

ReinforcementLearning.jl

Julia
3
star
34

benhamner.github.com

HTML
2
star
35

ScikitLearnTutorial

Initially for DSL meetup
Python
2
star
36

deepdream

Shell
1
star
37

Ben-s-Notes

1
star
38

snap-amazon-fine-foods

Python
1
star
39

hacker-news-scrape

Python
1
star
40

march-machine-learning-mania-2016

Makefile
1
star
41

bay-area-bike-share

Python
1
star
42

DetectingFacesFromMegBrainActivity

Detecting Faces From Meg Brain Activity
Julia
1
star
43

docker-gym

1
star