IIS_2023_1/kondrashin_mikhail_lab_5/models.py

9 lines
148 B
Python

from sklearn.linear_model import LinearRegression
def create_model(x, y):
linear = LinearRegression()
linear.fit(x, y)
return linear