RT for rt.cpan.org
Skip Menu
|
Bug #44416 for Algorithm-NaiveBayes: restore_state does not work
Active bugs
Resolved bugs
Rejected bugs
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)
History
Show all quoted text
Thu Mar 19 04:56:19 2009
agruber [...] tbi.univie.ac.at - Ticket created
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
Sun Sep 20 10:57:25 2009
MNF [...] cpan.org - Correspondence added
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.
Sun Sep 20 10:57:26 2009
The RT System itself - Status changed from 'new' to 'open'