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.
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
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP