Mozzie
Mozzie

Reputation: 353

What is it saved in the model of sklearn bayesian classifier

I believe that a Bayesian classifier is based on statistical model. But after training a Bayesian model, I can save it and do not need the training dataset to predict the test data. For example, if I build a bayesian model by

Bayesian Model y - labels,X-samples

Can I take the model as a equation like this?

Equation

If so, how can I extract the weights and bias? and what is the new formula looks like?If not, what is the new equation like?

Upvotes: 1

Views: 27

Answers (1)

cs95
cs95

Reputation: 402523

Yes, from the docs, a trained classifier has two attributes, intercept_ and coef_ which are useful if you want to interpret the NBC as a linear model.

Upvotes: 1

Related Questions