'GaussianNB: Get conditional probabilities
I have GaussianNB Model
from sklearn.naive_bayes import GaussianNB
model = GaussianNB()
model=model.fit(x_train,y_train)
model.class_prior_ #get prior probabilities
How can I get the conditional probabilities (such as P(Spam|Viagra=T + Sell=F)
) from the model?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|