[ 
https://issues.apache.org/jira/browse/OPENNLP-1010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

William Colen resolved OPENNLP-1010.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.7.2

The previous sortValues method was based on Perceptron, but for some reason it 
was not working
for NaiveBayes. Changed it to the one from GIS fixed it.

> NaiveBayes serialized models are not working
> --------------------------------------------
>
>                 Key: OPENNLP-1010
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-1010
>             Project: OpenNLP
>          Issue Type: Bug
>          Components: Machine Learning
>    Affects Versions: 1.7.2
>            Reporter: William Colen
>            Assignee: William Colen
>             Fix For: 1.7.2
>
>         Attachments: NaiveBayesSerializedCorrectnessTest.java
>
>
> The behaviour of a serialized model is different from a model that was never 
> serialized. For example, sometimes using the serialized we get only one 
> outcome, while it was working perfectly during cross validation (when we use 
> it before serializing).
> The attached test reproduces it. It compares the outcome array of a model 
> that was never serialized and the same model that was serialized and loaded.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to