Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problems trying to predict

9 views
Skip to first unread message

Ignacio J. Ortega Lopera

unread,
May 30, 2007, 2:47:22 PM5/30/07
to per...@perl.org
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?

Thanks in advance

Saludos, Ignacio J. Ortega
----------------------------------------------------------------
Technical manager
http://www.derecho.com/

Ken Williams

unread,
Jun 6, 2007, 10:21:46 PM6/6/07
to Ignacio J. Ortega Lopera, per...@perl.org
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

Ignacio J. Ortega Lopera

unread,
Jun 7, 2007, 3:41:33 AM6/7/07
to Ken Williams, per...@perl.org
Hola Ken:

Many thanks, your advice, did the trick.. nad yes it was when reloading
state from file..

2007/6/7, Ken Williams <k...@mathforum.org>:

0 new messages