File size: 173 Bytes
5210ded
 
 
 
 
 
1
2
3
4
5
6
7
from sklearn import linear_model
reg = linear_model.LinearRegression()
reg.fit([[0, 0], [1, 1], [2, 2]], [0, 1, 2])

from joblib import dump, load
dump(reg, 'model.joblib')