Last active
November 13, 2019 14:04
-
-
Save LucasOliveiraS/0a15c48e391f351b77d62e4523927e3e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sklearn.linear_model import SGDClassifier | |
| X = np.array([[0,0], [0,1]]) | |
| y = np.array([[0], [1]]) | |
| clf = SGDClassifier(loss="hinge", penalty="l2") | |
| clf.fit(X, y) | |
| X_new = np.array([[1,0], [1,1]]) | |
| y_new = np.array([[1], [0]]) | |
| clf.partial_fit(X_new,y_new) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment