I used sklearn.svm.SVC to build the support vectors classifier as shown below.
import numpy as np
from sklearn.svm import SVC
svc=SVC(probability=True)
X = np.random.randint(0, 100, [100, 3])
y = np.random.choice([0, 1, 2], 100, replace=True)
svc.fit(X, y)
print(svc.predict([[10, 20, 30]]), svc.predict_proba([[10, 20, 30]]))
The outputs are
[2] [[0.38993057 0.3791583 0.23091113]]
The result of svc.predict_proba() shows that the instance should belong to class0 with the highest probability. But svc.predict() says class2 instead. I wonder why these two results are inconsistent.