dotnet / dotnet/machinelearning

Porting algorithm - Multinomial NB

Open
#3,844 1 comment 0 reactions 0 assignees View on GitHub
area-Trainers enhancement Priority:2
Dominant language
C#
Stars
9.4k
Forks
2k
Avg merge
2d 20h
Merged PRs (30d)
11

Description

@codemzs Not finding multinomial NB as part of the ML.Net algorithms which we use for intent detection.

From nb sci kit learn libraries:
https://scikit-learn.org/stable/modules/generated/sklearn.naive_bayes.MultinomialNB.html

clfnb = Pipeline([('vect', CountVectorizer(tokenizer=None, lowercase=True, stop_words=None, ngram_range=(1,2))),
('tfidf', TfidfTransformer(use_idf = True)),
('clf', MultinomialNB()),])
clfnb.fit(df_train, df_label)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.