Algorithm-Classifier-NaiveBayes
view release on metacpan or search on metacpan
lib/Algorithm/Classifier/NaiveBayes.pm view on Meta::CPAN
By default token occurrences are weighted by their raw counts, but
binary weighting, counting each unique token once per document, may
be selected instead via token_weighting. Class priors default to how
often each class was trained, but may be set to uniform via priors.
Classes are not predefined. A class exists once something has been
trained for it and stops existing if everything for it is untrained.
The model may be saved to a JSON file or string and loaded back later,
allowing training and classification to happen in different processes.
=head1 METHODS
=head2 new
Initiates the object.
my $nb = Algorithm::Classifier::NaiveBayes->new(%args);
The following args are supported.
( run in 2.125 seconds using v1.01-cache-2.11-cpan-995e09ba956 )