machinelearninginaction3x
machinelearninginaction3x copied to clipboard
ValueError
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.