Last active
April 3, 2020 20:23
-
-
Save phil8192/514582902245c18a9e880fdd384e8d9b 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
def set_weights(intercept, coef, classes, model=linear_model.SGDClassifier()): | |
model.intercept_ = intercept | |
model.coef_ = coef | |
model.classes_ = classes | |
return model |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment