1
$\begingroup$

Possible Duplicate:
Naive Bayes for two continuous features

I've seen that Multinomial Naive Bayes classifier in Sklearn accepts real valued feature vectors.

I previously assumed that Multinomial Naive Bayes classifier only handles discrete values

If I were to design a multinomial Naive Bayes classifier of my own, how would I handle real valued feature vectors?

$\endgroup$

marked as duplicate by user88 Aug 27 '12 at 9:02

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1
$\begingroup$

One way to handle this is by "binning" -- the domain of the real value is binned into a finite set of intervals, and then each example is placed at the relevant bin.

You can read more about it in the following Wikipedia page:

http://en.wikipedia.org/wiki/Naive_Bayes_classifier

starting at "Another common ..."

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.