9 lines
148 B
Python
9 lines
148 B
Python
|
from sklearn.linear_model import LinearRegression
|
||
|
|
||
|
|
||
|
def create_model(x, y):
|
||
|
linear = LinearRegression()
|
||
|
linear.fit(x, y)
|
||
|
|
||
|
return linear
|