TransWikia.com

Probability of Gaussian Naive Bayes

Data Science Asked by mmwindel on May 22, 2021

How would I go about attaching a probability to the prediction outputted by a Gaussian Naive Bayes model ?
I’m asking because the predict_proba function U can use with sklearn’s Gaussian Naive Bayes classifier only gives me zeros or one, which is not what I want.

One Answer

I'm not familiar with sklearn NB methods but it's likely that these are actually the predicted probabilities. NB is known to often assign extreme probabilities, i.e. close to either 0 or 1. This issue implies that the probabilities predicted by NB are not really meaningful, i.e. they cannot (usually) be interpreted as "there is an x % chance that this instance belongs to this class" for example.

Answered by Erwan on May 22, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP