discrim
discrim copied to clipboard
Interface to naivebayes::multinomial_naive_bayes
Interface to Multinomial Naive Bayes function
Parsnip already offers interfaces to several packages that perform Naive Bayes. However, none of the functions supported seem to accept data in the format of counts of features (particularly useful when you have a document term matrix).
The naivebayes package already supported has a function multinomial_naive_bayes which is designed for that case. But at the moment parsnip only offers an interface to the generic naive_bayes function which doesn't include multinomial naive Bayes as an option.
Could you add support for this function too, please? (See discussion on SO.)
This is a good idea! Once I around to doing some {discrim} work I'll make sure to take a look at this