Bought a book about machine learning, it speaks of K nearest neighbor algorithm, now difficult problems please passing a great god, the import numpy as the second line of CLF=np KNeighborsClassifier () in the third row CLF. Fit (X, y) below and... , when run to the second line, idle prompt NameError, said CLF is not defined, the great god, please give directions,
CodePudding user response:
X is not defined