Skip to content

A light Python script that can compute accuracy, exact match, precision, recall, f1 score, and Hamming score.

Notifications You must be signed in to change notification settings

xyLpf/simple-metrics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

simple-metrics

A light Python script that can compute accuracy, exact match, precision, recall, f1 score, and Hamming score.

How to use

Be sure to import simple-metrics at the top of your personal file and simple-metrics.py is in the same directory.

All methods take 2 parameters, the actual results and the predicted results for a given task. deep_accuracy (aka Exact Match) and hamming_score is mainly for multilabel classification problems, and will fail if the two input arrays are not 2-dimensional.

About

A light Python script that can compute accuracy, exact match, precision, recall, f1 score, and Hamming score.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%