IIS_2023_1/kondrashin_mikhail_lab_5/models.py

9 lines
148 B
Python
Raw Normal View History

2023-11-26 22:53:59 +04:00
from sklearn.linear_model import LinearRegression
def create_model(x, y):
linear = LinearRegression()
linear.fit(x, y)
return linear