In [13]:
x1_test.shape
Out[13]:
(2,)
In [14]:
# potrebno je promeniti oblik niza kako bismo izbegli upozorenje

x1_test = x1_test.reshape(1,-1)
In [15]:
x1_test.shape
Out[15]:
(1, 2)
In [16]:
clf.predict(x1_test)
Out[16]:
array([1])