Errors in the data
= df[["horsepower","curb-weight","engine-size","highway-mpg"]]
lm.fit(Z,df["price"])
Yhat = lm.predict(Z)
There is an error as it shows Yhat = lm.predict(X) and this is incorrect. must be Z
2
votes
Anonymous
shared this idea