Skip to content

CachingNaiveBayesClassifier doesn't compute log prior. [LUCENE-7672] #8723

@asfimport

Description

@asfimport

The CachingNaiveBayesClassifier gives different results than the SimpleNaiveBayesClassifier. This is due to the fact that the CachineNaiveBayesClassifier does not calculate the log prior on the class (category) names, as it should.

This bug has been fixed, and a patch has been attached to this issue.

This affects master, as well as previous releases up to version 6.4.


Migrated from LUCENE-7672 by Kevin Crosby, updated Jul 19 2020
Attachments: LUCENE-7672.patch

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions