Remove warnings about old 1st edition code changes

This commit is contained in:
Aurélien Geron
2019-01-22 16:54:47 +08:00
parent 0e5f18997c
commit 90e3175c7d
4 changed files with 1 additions and 31 deletions

View File

@@ -229,13 +229,6 @@
"np.linalg.pinv(X_b).dot(y)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Note**: the first releases of the book implied that the `LinearRegression` class was based on the Normal Equation. This was an error, my apologies: as explained above, it is based on the pseudoinverse, which ultimately relies on the SVD matrix decomposition of $\\mathbf{X}$ (see chapter 8 for details about the SVD decomposition). Its time complexity is $O(n^2)$ and it works even when $m < n$ or when some features are linear combinations of other features (in these cases, $\\mathbf{X}^T \\mathbf{X}$ is not invertible so the Normal Equation fails), see [issue #184](https://github.com/ageron/handson-ml/issues/184) for more details. However, this does not change the rest of the description of the `LinearRegression` class, in particular, it is based on an analytical solution, it does not scale well with the number of features, it scales linearly with the number of instances, all the data must fit in memory, it does not require feature scaling and the order of the instances in the training set does not matter."
]
},
{
"cell_type": "markdown",
"metadata": {},