Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

发现 第2章 一个完整的机器学习项目中的一个小错误 #54

Open
bianximo opened this issue May 6, 2018 · 0 comments
Open

Comments

@bianximo
Copy link

bianximo commented May 6, 2018

在“在训练集上训练和评估”一步中

from sklearn.metrics import mean_squared_error
housing_predictions = lin_reg.predict(housing_prepared)
lin_mse = mean_squared_error(some_labels, housing_predictions)
lin_rmse = np.sqrt(lin_mse)
lin_rmse
68628.413493824875
some_labels应该是housing_labels

@PeterHo PeterHo mentioned this issue May 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant