Untitled
Anonymous
plain_text
09/12/2023 9:55 PM
216 B
26
Indexable
m, b, cost = linear_regression(x ** 2,y)
y_pred = m * x ** 2 + b
plt.scatter(x, y, color='blue')
plt.plot(x, y_pred, 'r-')
print('MSE: {}'.format(cost))Editor is loading...