text_plain_output_1.png
from sklearn.linear_model import LinearRegression

import pandas as pd

import pandas as pd
from pathlib import Path
df = pd.read_csv('/kaggle/input/iris/Iris.csv')

from sklearn.linear_model import LinearRegression
df = LinearRegression()
df.fit(X_train, y_train)
predictions = df.predict(X_test)

print('coefficient of determination:', df.score(X_train, y_train))
print('intercept:', df.intercept_)
print('slope:', df.coef_)