machinelearninginaction3x icon indicating copy to clipboard operation
machinelearninginaction3x copied to clipboard

ValueError

Open ljapkin-roman opened this issue 4 years ago • 0 comments

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 https://github.com/pbharrin/machinelearninginaction3x/blob/c1ea22fe4d0b56af757f7dd127a25471c47c5299/Ch02/kNN.py#L48 I read doc numpy.zeros and i'm get that a numpy matrix has only float value.

ljapkin-roman avatar May 02 '20 19:05 ljapkin-roman