You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Internally libsvm did 5-fold cv to decide decision values for getting
prob models. So if the # of data is too small, it may not be able to
give proper prob estimates..
from libsvm.svmutil import *
y, x = [1, -1], [[1,0,0], [-1,0,0]]
prob = svm_problem(y, x)
param = svm_parameter('-t 0 -b 1')
model = svm_train(prob, param)
p_label, p_acc, p_val = svm_predict(y, x, model,'-b 1')
print(p_val)
Output:
This happens with all the interfaces.
The text was updated successfully, but these errors were encountered: