Subject: | can't use predict on restored object |
Date: | Mon, 6 Dec 2010 01:26:54 +0300 |
To: | bug-Algorithm-NaiveBayes <bug-Algorithm-NaiveBayes [...] rt.cpan.org> |
From: | Pavel Goloborodko <mailgpa [...] gmail.com> |
Hello.
I'm getting the following message trying to call predict on an object
restored from file: "Can't use an undefined value as a HASH reference
at /usr/local/share/perl/5.10.1/Algorithm/NaiveBayes/Model/Frequency.pm
line 62."
It works fine with the same args I'm calling it immediately after
train without save/restore.
Could you please help with a solution or workaround?
Thanks.
Algorithm::NaiveBayes version 0.04
$ perl -v
This is perl, v5.10.1 (*) built for i486-linux-gnu-thread-multi
(with 50 registered patches, see perl -V for more detail)
Copyright 1987-2009, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
$ uname -a
Linux subzero 2.6.32-5-686 #1 SMP Thu Nov 25 18:43:34 UTC 2010 i686 GNU/Linux
--
С уважением, / Kind regards,
Павел Голобородько / Pavel Goloborodko