Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sklearn.svm import SVC
- # gamma controls margin size (in loss function)
- # C controls classfying error penalty
- clf = SVC(C=1.0, gamma=1000)
- from sklearn.naive_bayes import GaussianNB
- clf = GaussianNB()
- clf.fit(...)
- pred = clf.predict(...)
Add Comment
Please, Sign In to add comment