AI-NaiveBayes
view release on metacpan or search on metacpan
lib/AI/NaiveBayes/Learner.pm view on Meta::CPAN
The rest of the attributes is for class' internal usage, and thus not
documented.
=item C<classifier_class>
The class of the classifier to be created. By default it is
C<AI::NaiveBayes>
=back
=head1 METHODS
=over 4
=item C<add_example( attributes => HASHREF, labels => LIST )>
Saves the information from a training example into internal data structures.
C<attributes> should be of the form of
{ feature1 => weight1, feature2 => weight2, ... }
C<labels> should be a list of strings denoting one or more classes to which the example belongs.
=item C<classifier()>
Creates an AI::NaiveBayes classifier based on the data accumulated before.
=back
=head1 UTILITY SUBS
=over 4
=item C<add_hash>
=back
=head1 BASED ON
Much of the code and description is from L<Algorithm::NaiveBayes>.
=head1 AUTHORS
=over 4
=item *
Zbigniew Lukasiak <zlukasiak@opera.com>
=item *
Tadeusz SoÅnierz <tsosnierz@opera.com>
=item *
Ken Williams <ken@mathforum.org>
=back
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Opera Software ASA.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
__END__
# ABSTRACT: Build AI::NaiveBayes classifier from a set of training examples.
( run in 0.963 second using v1.01-cache-2.11-cpan-acf6aa7dc9e )