LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: jhoon Date: Fri May 25 03:58:23 2007 Subject: how to use the function of "feature selection" under AI::Categorizer
Hello, I¡¯d like to select more important features using AI::Categorizer, and so modified demo.pl as follows === FROM === my $k = AI::Categorizer::KnowledgeSet->new( verbose => 1 ); === TO === my $k = AI::Categorizer::KnowledgeSet->new( verbose => 1, feature_selector => new AI::Categorizer::FeatureSelector::DocFrequency( ¡¡ verbose => 1, ¡¡ features_kept => 1000 ¡¡ ) ); === END === I observed the performance according to change the value of features_kept, but the performance is always same. I¡¯d appreciate it if you tell me how to do the feature selection using AI::Categorizer? Thank you very much in advance. Jae-Hoon.
| Navigate in group perl.ai at sever nntp.perl.org | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |