i get an empty list , when i run the train svm function
def trainsvm(x,y):
svm_classifiers={}
for i in range(classes):
svm_classifiers[i]={}
for j in range(i+1,classes):
xpair,ypair= getdatapairforsvm(data[i],data[j])
wts,b,loss=mysvm.fit(xpair,ypair)
svm_classifiers[i][j]=(wts,b)
return svm_classifiers
svm_classifiers= trainsvm(img_data,labels)
svm_classifiers
output-{0: {}, 1: {}, 2: {}, 3: {}}