Orange Forum • View topic - Incorrect <1, 0> Naive Bayes Probabilities

Incorrect <1, 0> Naive Bayes Probabilities

A place to ask questions about methods in Orange and how they are used and other general support.

Incorrect <1, 0> Naive Bayes Probabilities

Postby djwonk » Sat Nov 10, 2012 20:33

I'm using a simple Naive Bayes learner:

Code: Select all
learner = Orange.classification.bayes.NaiveLearner(name = "NB", adjust_threshold = True)
classifier = learner(data)


Now, when it comes to classification on test data, my code looks like:

Code: Select all
for row in test_data:
    values, probabilities = classifier(row, Orange.classification.Classifier.GetBoth)


The values have variation. Good. But the probabilities are *always* <1.000, 0.000>. Woah! That's crazy.

This is not the case for an SVM. Out of the box, it gives reasonable probabilities. What's going on?

Re: Incorrect <1, 0> Naive Bayes Probabilities

Postby Ales » Mon Nov 12, 2012 11:04

I can't duplicate this.
Can you provide a more detailed description of the data.


Return to Questions & Support



cron