discrim icon indicating copy to clipboard operation
discrim copied to clipboard

Interface to naivebayes::multinomial_naive_bayes

Open tomwagstaff-opml opened this issue 2 years ago • 1 comments
trafficstars

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.)

tomwagstaff-opml avatar Jan 12 '23 10:01 tomwagstaff-opml

This is a good idea! Once I around to doing some {discrim} work I'll make sure to take a look at this

EmilHvitfeldt avatar Mar 30 '23 19:03 EmilHvitfeldt