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

ValueError #17

Open
ljapkin-roman opened this issue May 2, 2020 · 0 comments
Open

ValueError #17

ljapkin-roman opened this issue May 2, 2020 · 0 comments

Comments

@ljapkin-roman
Copy link

ljapkin-roman commented May 2, 2020

I read the book "Machine Learning in action" and repeat code from the chapter 2 kNN, but i got error
"ValueError: could not convert string to float:" on the string

returnMat[index, :] = listFromLine[0:3]

I read doc numpy.zeros and i'm get that a numpy matrix has only float value.

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