AI-NaiveBayes
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
},
"prereqs" : {
"configure" : {
"requires" : {
"ExtUtils::MakeMaker" : "0"
}
},
"develop" : {
"requires" : {
"Pod::Coverage::TrustPod" : "0",
"Test::Pod" : "1.41",
"Test::Pod::Coverage" : "1.08"
}
},
"runtime" : {
"requires" : {
"File::Find::Rule" : "0.32",
"List::Util" : "0",
"Moose" : "1.15",
"MooseX::Storage" : "0.25",
"perl" : "5.010",
"strict" : "0",
"warnings" : "0"
}
},
"test" : {
"requires" : {
"Test::More" : "0"
}
}
},
"release_status" : "stable",
"resources" : {
"repository" : {
"type" : "git",
"web" : "http://github.com/zby/AI-NaiveBayes"
}
},
---
abstract: 'A Bayesian classifier'
author:
- 'Zbigniew Lukasiak <zlukasiak@opera.com>'
- 'Tadeusz SoÅnierz <tsosnierz@opera.com>'
- 'Ken Williams <ken@mathforum.org>'
build_requires:
Test::More: '0'
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150005'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
name: AI-NaiveBayes
no_index:
Makefile.PL view on Meta::CPAN
"NAME" => "AI::NaiveBayes",
"PREREQ_PM" => {
"File::Find::Rule" => "0.32",
"List::Util" => 0,
"Moose" => "1.15",
"MooseX::Storage" => "0.25",
"strict" => 0,
"warnings" => 0
},
"TEST_REQUIRES" => {
"Test::More" => 0
},
"VERSION" => "0.04",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
"File::Find::Rule" => "0.32",
"List::Util" => 0,
"Moose" => "1.15",
"MooseX::Storage" => "0.25",
"Test::More" => 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;
}
license = Perl_5
copyright_holder = Opera Software ASA
copyright_year = 2012
version = 0.04
[@Basic]
[AutoPrereqs]
[Prereqs]
Moose = 1.15
MooseX::Storage = 0.25
File::Find::Rule = 0.32
[TestRelease]
[PkgVersion]
[MetaNoIndex]
directory = t/lib
directory = examples
[InstallGuide]
[MetaJSON]
[MetaResources]
repository.web = http://github.com/zby/AI-NaiveBayes
repository.type = git
[NextRelease]
format = %-9v %{yyyy-MM-dd}d
[CheckChangeLog]
[PodSyntaxTests]
[PodCoverageTests]
[PodWeaver]
license = Perl_5
copyright_holder = Opera Software ASA
copyright_year = 2012
version = 0.04
[@Basic]
[AutoPrereqs]
[Prereqs]
Moose = 1.15
MooseX::Storage = 0.25
File::Find::Rule = 0.32
[TestRelease]
[PkgVersion]
[MetaNoIndex]
directory = t/lib
directory = examples
[InstallGuide]
[MetaJSON]
[MetaResources]
repository.web = http://github.com/zby/AI-NaiveBayes
repository.type = git
[NextRelease]
format = %-9v %{yyyy-MM-dd}d
[CheckChangeLog]
[PodSyntaxTests]
[PodCoverageTests]
[PodWeaver]
[Git::Contributors]
t/01-learner.t view on Meta::CPAN
use strict;
use warnings;
use Test::More tests => 11;
use AI::NaiveBayes::Learner;
ok(1); # If we made it this far, we're loaded.
my $learner = AI::NaiveBayes::Learner->new();
# Populate
$learner->add_example( attributes => _hash(qw(sheep very valuable farming)),
labels => ['farming'] );
is $learner->{labels}{farming}{count}, 1;
t/02-predict.t view on Meta::CPAN
use strict;
use warnings;
use Test::More tests => 12;
use AI::NaiveBayes;
use AI::NaiveBayes::Learner;
ok(1); # If we made it this far, we're loaded.
my $lr = AI::NaiveBayes::Learner->new();
# Populate
$lr->add_example( attributes => _hash(qw(sheep very valuable farming)),
labels => ['farming'] );
$lr->add_example( attributes => _hash(qw(farming requires many kinds animals)),
t/author-pod-coverage.t view on Meta::CPAN
#!perl
BEGIN {
unless ($ENV{AUTHOR_TESTING}) {
print qq{1..0 # SKIP these tests are for testing by the author\n};
exit
}
}
# This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests.
use Test::Pod::Coverage 1.08;
use Pod::Coverage::TrustPod;
all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });
t/author-pod-syntax.t view on Meta::CPAN
#!perl
BEGIN {
unless ($ENV{AUTHOR_TESTING}) {
print qq{1..0 # SKIP these tests are for testing by the author\n};
exit
}
}
# 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();
t/default_training.t view on Meta::CPAN
use strict;
use Test::More tests => 2;
use AI::NaiveBayes;
ok(1); # If we made it this far, we're loaded.
my $classifier = AI::NaiveBayes->train(
{
attributes => _hash(qw(sheep very valuable farming)),
labels => ['farming']
},
{
attributes => _hash(qw(vampires cannot see their images mirrors)),
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.882 second using v1.00-cache-2.02-grep-82fe00e-cpan-585fae043c8 )