ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-ai
perl-ai
how to use the function of "feature selection" under AI::Categorizer
by Jhoon other posts by this author
May 25 2007 4:09AM messages near this date
package AI::Categorizer::Collection::DBI; | how to do feature selection
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. 

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved