Created
November 18, 2022 01:13
-
-
Save kylegallatin/ec2a5df5f2c2f3092821710ddc3727be 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
import pickle | |
from sklearn.datasets import make_classification | |
from sklearn.linear_model import LogisticRegression | |
x, y = make_classification(n_samples=100, | |
n_features=3, | |
n_informative=2, | |
n_classes=2, | |
n_redundant=0, | |
n_repeated=0,) | |
lr = LogisticRegression() | |
lr.fit(x,y) | |
with open('model.pickle', 'wb') as f: | |
pickle.dump(lr, f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment