| def classify(features_train, labels_train): | |
| ### import the sklearn module for GaussianNB | |
| from sklearn.naive_bayes import GaussianNB | |
| ### create classifier | |
| clf = GaussianNB() | |
| ### fit the classifier on the training features and labels | |
| clf.fit(features_train, labels_train) | |
| ### return the fit classifier | |
| return clf | |
| ### your code goes here! |
Wednesday, 26 December 2018
New
script for ClassifyNB.py
About Saurabh kodag
SoraTemplates is a blogger resources site is a provider of high quality blogger template with premium looking layout and robust design. The main mission of SoraTemplates is to provide the best quality blogger templates.
technology
Labels:
technology