1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Add p5-Statistics-Contingency 0.06,

calculate precision, recall,
F1, accuracy, etc.

PR:		60726
Submitted by:	Cheng-Lung Sung <clsung@dragon2.net>
This commit is contained in:
Vanilla I. Shu 2004-01-03 09:20:28 +00:00
parent a502254703
commit 57fecf181c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=97202
5 changed files with 52 additions and 0 deletions

View File

@ -138,6 +138,7 @@
SUBDIR += p5-Set-IntSpan
SUBDIR += p5-Set-Window
SUBDIR += p5-Statistics-ChiSquare
SUBDIR += p5-Statistics-Contingency
SUBDIR += p5-Statistics-Descriptive
SUBDIR += p5-Statistics-Distributions
SUBDIR += p5-Statistics-LTU

View File

@ -0,0 +1,31 @@
# New ports collection makefile for: math/p5-Statistics-Contingency
# Date created: Tue Dec 30 19:57:00 CST 2003
# Whom: Cheng-Lung Sung <clsung@dragon2.net>
#
# $FreeBSD$
#
PORTNAME= Statistics-Contingency
PORTVERSION= 0.06
CATEGORIES= math perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Statistics
PKGNAMEPREFIX= p5-
MAINTAINER= clsung@dragon2.net
COMMENT= Calculate precision, recall, F1, accuracy, etc
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Statistics::Contingency.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500601
IGNORE= This port will require perl 5.6.x or later in the future. Install lang/perl5 then try again
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1 @@
MD5 (Statistics-Contingency-0.06.tar.gz) = 270d65583f053b078af90359011fb5c9

View File

@ -0,0 +1,14 @@
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.
WWW: http://search.cpan.org/dist/Statistics-Contingency
Author: Ken Williams <kenw@ee.usyd.edu.au>

View File

@ -0,0 +1,5 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Statistics/Contingency/.packlist
%%SITE_PERL%%/Statistics/Contingency.pm
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Statistics/Contingency
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Statistics 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/Statistics 2>/dev/null || true