python-machine-learning-book-3rd-edition
python-machine-learning-book-3rd-edition copied to clipboard
Errata Page 522 ch15
@rasbt
The following equation on page 522:
Assuming array index of x and w starts at 0 (which is suggested by the fact that the index k starts at 0) the equation will give for y[0] and m=4 and p=0:
y[0]=x[4]w[0] + x[3]w[1] + x[2]w[2] + x[1]w[3]
thereby skipping x[0]
i would suggest the following correction
Likewise
And the example should be corrected to

Good catch. Sorry about that and thanks for the feedback. We will fix that in the next edition