It's been a bit over a week, so I thought I would try again. I can probably
identify the type of prior by looking at the code. Where exactly is this
prior applied?
Josh
On Wed, Aug 27, 2014 at 11:47 PM, Josh Wasserstein <[email protected]>
wrote:
> What prior does scikit-learn use for MultinomialNB? The documentation
> says:
>
> *class_prior : array-like, size (n_classes,)*
> *Prior probabilities of the classes. If specified the priors are not
> adjusted according to the data.*
>
> For N classes, one typically uses a Dirichlet prior
> <http://en.wikipedia.org/wiki/Dirichlet_distribution>, but this prior
> would be specified with N positive values (for the concentration
> parameters), not with N probabilities (quantities bounded between 0 and 1).
> So MultinomialNB seems to be using something different. What is it?
>
> Josh
>
>
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general