Skip Menu |

This queue is for tickets about the Algorithm-NaiveBayes CPAN distribution.

Report information
The Basics
Id: 44416
Status: open
Priority: 0/
Queue: Algorithm-NaiveBayes

People
Owner: Nobody in particular
Requestors: agruber [...] tbi.univie.ac.at
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: restore_state does not work
Date: Wed, 18 Mar 2009 22:25:21 +0100
To: bug-Algorithm-NaiveBayes [...] rt.cpan.org
From: Andreas Gruber <agruber [...] tbi.univie.ac.at>
save_state saves a Algorithm::NaiveBayes::Model::Frequency object which cannot be restored by restore_state
You can solve this by explicitly including the model in your calling code, like so: Show quoted text
> use Algorithm::NaiveBayes::Model::Frequency;
Arguably Algorithm::NaiveBayes should do this for you, or the documentation should be updated to explain this.