AI-ConfusionMatrix
view release on metacpan or search on metacpan
},
"name" : "AI-ConfusionMatrix",
"prereqs" : {
"configure" : {
"requires" : {
"ExtUtils::MakeMaker" : "0"
}
},
"develop" : {
"requires" : {
"Test::More" : "0",
"Test::Pod" : "1.41"
}
},
"runtime" : {
"requires" : {
"Carp" : "0",
"Exporter" : "0",
"Tie::File" : "0",
"strict" : "0",
"warnings" : "0"
}
},
"test" : {
"requires" : {
"File::Temp" : "0",
"Test::More" : "0"
}
}
},
"provides" : {
"AI::ConfusionMatrix" : {
"file" : "lib/AI/ConfusionMatrix.pm",
"version" : "0.010"
}
},
"release_status" : "stable",
---
abstract: 'Make a confusion matrix'
author:
- 'Vincent Lequertier <vi.le@autistici.org>'
build_requires:
File::Temp: '0'
Test::More: '0'
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
name: AI-ConfusionMatrix
provides:
Makefile.PL view on Meta::CPAN
"NAME" => "AI::ConfusionMatrix",
"PREREQ_PM" => {
"Carp" => 0,
"Exporter" => 0,
"Tie::File" => 0,
"strict" => 0,
"warnings" => 0
},
"TEST_REQUIRES" => {
"File::Temp" => 0,
"Test::More" => 0
},
"VERSION" => "0.010",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
"Carp" => 0,
"Exporter" => 0,
"File::Temp" => 0,
"Test::More" => 0,
"Tie::File" => 0,
"strict" => 0,
"warnings" => 0
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
exclude_match = ~$
exclude_match = tags
[License]
[MetaYAML]
[MetaJSON]
[MetaProvides::Package]
[MakeMaker]
[ManifestSkip]
[Manifest]
[PkgVersion]
[PodSyntaxTests]
[ReadmeAnyFromPod]
type = markdown
filename = README.md
location = build
use Test::More tests => 13;
require_ok( 'AI::ConfusionMatrix' );
use AI::ConfusionMatrix;
use Tie::File;
use File::Temp 'tempfile';
my $hash = {
1978 => {
1978 => 5,
1974 => 1,
t/02_cmData.t view on Meta::CPAN
use Test::More tests => 6;
require_ok( 'AI::ConfusionMatrix' );
use AI::ConfusionMatrix;
my $hash = {
1978 => {
1978 => 5,
1974 => 1,
},
2005 => {
t/02_cmData.t view on Meta::CPAN
2002 => 1
},
2003 => {
2005 => 2,
2003 => 7,
}
};
my %cmData = getConfusionMatrix($hash);
is($cmData{stats}{2003}{tp}, 7, 'Test parsing true positives');
is($cmData{stats}{2005}{sensitivity}, 60, 'Test parsing sensitivity');
is($cmData{totals}{tp}, 15, 'Test parsing total true positives');
is($cmData{totals}{2003}, 7, 'Test parsing total');
is_deeply($cmData{columns}, [1974, 1978, 2002, 2003, 2005], 'Test parsing columns');
xt/author/pod-syntax.t view on Meta::CPAN
#!perl
# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
use strict; use warnings;
use Test::More;
use Test::Pod 1.41;
all_pod_files_ok();
( run in 0.617 second using v1.01-cache-2.11-cpan-4d50c553e7e )