Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correction in calling function in book example #5

Open
senyj opened this issue Oct 15, 2016 · 0 comments
Open

Correction in calling function in book example #5

senyj opened this issue Oct 15, 2016 · 0 comments

Comments

@senyj
Copy link

senyj commented Oct 15, 2016

Hi,
on the top of the page 4-34, you are calling a function computeNearestNeighbor('Angelica', 'Cagle', [1, 5, 2.5, 1, 1, 5, 1]), but if you assume to use the implementation of that function from page 4-33, it will cause an error.

I suggest to call the function like this computeNearestNeighbor('Cagle', [1, 5, 2.5, 1, 1, 5, 1], items) where items is vector represents all the attributes and the output is the same like in the book.

Cheers!
Jakub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant