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
Re: Problems trying to predict
by Ken Williams other posts by this author
Jun 6 2007 11:41PM messages near this date
Problems trying to predict | Re: Problems trying to predict
Hi Ignacio,

Is this when loading a pre-trained categorizer from a saved file?   
This is a known problem, but I haven't settled on a good solution.

A simple workaround is to just put:

  use Algorithm::NaiveBayes::Model::Frequency;

in the script that's currently failing.

  -Ken


On May 30, 2007, at 1:47 PM, Ignacio J. Ortega Lopera wrote:

>  i'm getting this:
> 
>  Can't locate object method "predict" via package
>  "Algorithm::NaiveBayes::Model::
>  Frequency" at
>  /usr/lib/perl5/site_perl/5.8.0/AI/Categorizer/Learner/NaiveBayes.p
>  m line 28.
> 
>  when trying to get hypoteses.. for a new doc....
> 
>  anyone know if this is a silly one?
Thread:
Ignacio J. Ortega Lopera
Ken Williams
Ignacio J. Ortega Lopera

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved