diff options
author | vanilla <vanilla@FreeBSD.org> | 2004-01-03 17:20:28 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2004-01-03 17:20:28 +0800 |
commit | 87478a27bde400cd2832d0cf1b7b482c81f0da98 (patch) | |
tree | 7c276b3a392e7fe4a21d28875ccdc30f24763576 /math | |
parent | c274c9e9c83d42573d1ab35e15af5bf15f172dec (diff) | |
download | freebsd-ports-gnome-87478a27bde400cd2832d0cf1b7b482c81f0da98.tar.gz freebsd-ports-gnome-87478a27bde400cd2832d0cf1b7b482c81f0da98.tar.zst freebsd-ports-gnome-87478a27bde400cd2832d0cf1b7b482c81f0da98.zip |
Add p5-Statistics-Contingency 0.06,
calculate precision, recall,
F1, accuracy, etc.
PR: 60726
Submitted by: Cheng-Lung Sung <clsung@dragon2.net>
Diffstat (limited to 'math')
-rw-r--r-- | math/Makefile | 1 | ||||
-rw-r--r-- | math/p5-Statistics-Contingency/Makefile | 31 | ||||
-rw-r--r-- | math/p5-Statistics-Contingency/distinfo | 1 | ||||
-rw-r--r-- | math/p5-Statistics-Contingency/pkg-descr | 14 | ||||
-rw-r--r-- | math/p5-Statistics-Contingency/pkg-plist | 5 |
5 files changed, 52 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index 34c453867522..82713be4f6e3 100644 --- a/math/Makefile +++ b/math/Makefile @@ -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 diff --git a/math/p5-Statistics-Contingency/Makefile b/math/p5-Statistics-Contingency/Makefile new file mode 100644 index 000000000000..00acbb9cc30b --- /dev/null +++ b/math/p5-Statistics-Contingency/Makefile @@ -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> diff --git a/math/p5-Statistics-Contingency/distinfo b/math/p5-Statistics-Contingency/distinfo new file mode 100644 index 000000000000..a64df413d067 --- /dev/null +++ b/math/p5-Statistics-Contingency/distinfo @@ -0,0 +1 @@ +MD5 (Statistics-Contingency-0.06.tar.gz) = 270d65583f053b078af90359011fb5c9 diff --git a/math/p5-Statistics-Contingency/pkg-descr b/math/p5-Statistics-Contingency/pkg-descr new file mode 100644 index 000000000000..c04dd38058e2 --- /dev/null +++ b/math/p5-Statistics-Contingency/pkg-descr @@ -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> diff --git a/math/p5-Statistics-Contingency/pkg-plist b/math/p5-Statistics-Contingency/pkg-plist new file mode 100644 index 000000000000..0cfd0b46b3ae --- /dev/null +++ b/math/p5-Statistics-Contingency/pkg-plist @@ -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 |