Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ValueError: query data dimension must match training data dimension

example = np.array([7,4,3,2,4,5,3,6,7,4,2,3,5,6,8,4])
example = example.reshape(1, -1)

prediction = clf.predict(example)
print(prediction) # shouldn't error anymore
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #query #data #dimension #match #training #data #dimension
ADD COMMENT
Topic
Name
5+7 =