Closed Al3xDo closed 3 years ago
Hi everyone, I'm stuck in this error when i use `from sklearn.linear_model import LinearRegression
lin_reg= LinearRegression() lin_reg.fit(housing_prepared, housing_labels)` Here is the error log:
replace housing_labels = strat_train_set["median_house_value"].copy to housing_labels = strat_train_set["median_house_value"].copy() and that will fix it
housing_labels = strat_train_set["median_house_value"].copy
housing_labels = strat_train_set["median_house_value"].copy()
Hi everyone, I'm stuck in this error when i use `from sklearn.linear_model import LinearRegression
lin_reg= LinearRegression() lin_reg.fit(housing_prepared, housing_labels)` Here is the error log: