Algorithm::AdaBoost::Classifier
This class should be instanciated via Algorithm::AdaBoost->train.
Algorithm::AdaBoost->train
Returns a CodeRef which delegates given arguments to classify.
classify
Altough you can use the object itself like a CodeRef because &{} operator is overloaded with this method, it constructs a closure for each call. So if you classify many inputs, you should hold a closure explicitly or use classify directly.
&{}
Executes binary classification. Takes 1 argument as a feature and return a real number. If the number is positive, given feature is considered to belong to one class. Similary, If the number is negative, given feature is considered to belong to another one class. If zero is returned, it means that the feature cannot be classified (very rare case).
Koichi SATOH <sekia@cpan.org>
To install Algorithm::AdaBoost, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Algorithm::AdaBoost
CPAN shell
perl -MCPAN -e shell install Algorithm::AdaBoost
For more information on module installation, please visit the detailed CPAN module installation guide.