I am unable find the error. Pls help -
https://colab.research.google.com/drive/1biGNjjn96XXpUdnuW4PxxHwRjTXEF8FR?usp=sharing
I am unable find the error. Pls help -
https://colab.research.google.com/drive/1biGNjjn96XXpUdnuW4PxxHwRjTXEF8FR?usp=sharing
There was an indentation mistake in the trainSVMs() function. This is the correct function:
def trainSVMs(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
Hope this helps!
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.