Skip to content

Instantly share code, notes, and snippets.

@phil8192
Last active April 3, 2020 20:23
Show Gist options
  • Save phil8192/514582902245c18a9e880fdd384e8d9b to your computer and use it in GitHub Desktop.
Save phil8192/514582902245c18a9e880fdd384e8d9b to your computer and use it in GitHub Desktop.
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