Statistics::Contingency 0.06
Statistics::Contingency is a Perl module to calculate precision, recall, F1, accuracy, etc. SYNOPSIS use Statistics::Contingen
|
|||||||||||||||||||
Statistics::Contingency is a Perl module to calculate precision, recall, F1, accuracy, etc.
SYNOPSIS
use Statistics::Contingency;
my $s = new Statistics::Contingency(categories => @all_categories);
while (...something...) {
...
$s->add_result($assigned_categories, $correct_categories);
}
print "Micro F1: ", $s->micro_F1, "n"; # Access a single statistic
print $s->stats_table; # Show several stats in table form
The Statistics::Contingency class helps you calculate several useful statistical measures based on 2x2 "contingency tables". I use these measures to help judge the results of automatic text categorization experiments, but they are useful in other situations as well.
The general usage flow is to tally a whole bunch of results in the Statistics::Contingency object, then query that object to obtain the measures you are interested in. When all results have been collected, you can get a report on accuracy, precision, recall, F1, and so on, with both macro-averaging and micro-averaging over categories.
Requirements:
tags
Download Statistics::Contingency 0.06
Authors software
|
|
|
|
|
|
|
|
|
|
Similar software
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Other software in this category
|
|
|
|
|
|
|
|
|
|
Featured Software
jEdit 4.3 pre8
jEdit is an Open Source text editor written in Java
Opera 9.02
Surf the Internet in a safer, faster, and easier way with Opera browser
GNU Aspell 0.60.4
GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell
- Communications
- Database
- Desktop Environment
- Games
- Internet
- Multimedia
- Office
- Programming
- Science and Engineering
- System
- Text Editing&Processing
