-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Implement GeneralNB #15077
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@qinhanmin2014, here is my preliminary suggestion. The implementation for An sklearn user would expect to use GeneralNB in this manner: import numpy as np
from sklearn.naive_bayes import GaussianNB, BernoulliNB,
X = np.array([[1.5, 2.3, 0, 1],
[2.7, 3.8, 1, 0],
[1.7, 0.1, 1, 0]])
y = np.array([1,0,2])
generalnb = GeneralNB([(GaussianNB(), [0,1]), (BernoulliNB(), [2,3])])
generalnb.fit(X, y) In general how I would implement the For the Let me know what are your thoughts on this or if I missed something out. |
Thanks, I think this is what we want. |
Got it, I will start working on it. |
take |
Open an issue to discuss the implementation of GeneralNB (combine different naive bayes estimators to support different types of features)
Related issue: #10856 #12957
The text was updated successfully, but these errors were encountered: