ports/60726: new port: math/p5-Statistics-Contingency
Cheng-Lung Sung
clsung at dragon2.net
Tue Dec 30 12:10:23 UTC 2003
>Number: 60726
>Category: ports
>Synopsis: new port: math/p5-Statistics-Contingency
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 30 04:10:20 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Cheng-Lung Sung
>Release: FreeBSD 4.9-RELEASE i386
>Organization:
FreeBSD @ Taiwan
>Environment:
System: FreeBSD sungsung.csie.nctu.edu.tw 4.9-RELEASE FreeBSD 4.9-RELEASE #5: Wed Oct 29 20:13:25 CST 2003 root at sungsung.csie.nctu.edu.tw:/usr/obj/usr/src/sys/SUNGSUNG i386
>Description:
- Calculate precision, recall, F1, accuracy, etc.
>How-To-Repeat:
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# p5-Statistics-Contingency
# p5-Statistics-Contingency/Makefile
# p5-Statistics-Contingency/distinfo
# p5-Statistics-Contingency/pkg-descr
# p5-Statistics-Contingency/pkg-plist
#
echo c - p5-Statistics-Contingency
mkdir -p p5-Statistics-Contingency > /dev/null 2>&1
echo x - p5-Statistics-Contingency/Makefile
sed 's/^X//' >p5-Statistics-Contingency/Makefile << 'END-of-p5-Statistics-Contingency/Makefile'
X# New ports collection makefile for: math/p5-Statistics-Contingency
X# Date created: Tue Dec 30 19:57:00 CST 2003
X# Whom: Cheng-Lung Sung <clsung at dragon2.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME= Statistics-Contingency
XPORTVERSION= 0.06
XCATEGORIES= math perl5
XMASTER_SITES= ${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR= Statistics
XPKGNAMEPREFIX= p5-
X
XMAINTAINER= clsung at dragon2.net
XCOMMENT= Calculate precision, recall, F1, accuracy, etc
X
XBUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate
XRUN_DEPENDS= ${BUILD_DEPENDS}
X
XPERL_CONFIGURE= yes
X
XMAN3= Statistics::Contingency.3
X
X.include <bsd.port.pre.mk>
X
X.if ${PERL_LEVEL} < 500601
XIGNORE= This port will require perl 5.6.x or later in the future. Install lang/perl5 then try again
X.endif
X
X.include <bsd.port.post.mk>
END-of-p5-Statistics-Contingency/Makefile
echo x - p5-Statistics-Contingency/distinfo
sed 's/^X//' >p5-Statistics-Contingency/distinfo << 'END-of-p5-Statistics-Contingency/distinfo'
XMD5 (Statistics-Contingency-0.06.tar.gz) = 270d65583f053b078af90359011fb5c9
END-of-p5-Statistics-Contingency/distinfo
echo x - p5-Statistics-Contingency/pkg-descr
sed 's/^X//' >p5-Statistics-Contingency/pkg-descr << 'END-of-p5-Statistics-Contingency/pkg-descr'
XThe "Statistics::Contingency" class helps you calculate several useful
Xstatistical measures based on 2x2 "contingency tables". I use these measures
Xto help judge the results of automatic text categorization experiments, but
Xthey are useful in other situations as well.
X
XThe general usage flow is to tally a whole bunch of results in the
X"Statistics::Contingency" object, then query that object to obtain the
Xmeasures you are interested in. When all results have been collected, you
Xcan get a report on accuracy, precision, recall, F1, and so on, with both
Xmacro-averaging and micro-averaging over categories.
X
XWWW: http://search.cpan.org/dist/Statistics-Contingency
X
XAuthor: Ken Williams <kenw at ee.usyd.edu.au>
END-of-p5-Statistics-Contingency/pkg-descr
echo x - p5-Statistics-Contingency/pkg-plist
sed 's/^X//' >p5-Statistics-Contingency/pkg-plist << 'END-of-p5-Statistics-Contingency/pkg-plist'
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Statistics/Contingency/.packlist
X%%SITE_PERL%%/Statistics/Contingency.pm
X at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Statistics/Contingency
X at unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Statistics 2>/dev/null || true
X at unexec rmdir %D/%%SITE_PERL%%/Statistics 2>/dev/null || true
END-of-p5-Statistics-Contingency/pkg-plist
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list