![]() |
SVM classifier One-vs-One and One-Vs-All clarification
I don't understand the question correctly here. For one-vs-one should we pick 2 digits (e.g. 1 and 2) and make them +1 and -1 and rest of the data ignore and try the classification and repeat the exercise for 1,2 1,3 1,4 etc. That would be 10C2 combination. Also for one-vs-all should we do the same but instead of ignoring all the data should we make them all -1?
Then how do we classify 4-vs-all etc.? Really appreciate some help here. |
Re: SVM classifier One-vs-One and One-Vs-All clarification
Thank you professor for such quick response. I think now I understand correctly e.g. in Q 5 1 vs 5 classifier we should make all records of digit 1 as say +1 and all records of digit 5 as -1 and remove all other records from the training set and train our model. Is that right understanding?
|
Re: SVM classifier One-vs-One and One-Vs-All clarification
Quote:
|
Re: SVM classifier One-vs-One and One-Vs-All clarification
Quote:
Seems to me that many classifiers would work less well if you kept in the "one" class, also with ![]() |
Re: SVM classifier One-vs-One and One-Vs-All clarification
|
Re: SVM classifier One-vs-One and One-Vs-All clarification
I was also confused by the wording:
"Then how do we classify 4-vs-all etc.? Really appreciate some help here." I took it to mean four digits versus all, rather than the digit 4 versus all the rest...( ie we 've just talked about one versus all and one versus one...) [to explain my confusion - a divide and conquer strategy would make sense to me eg first classify into "straight" digits vs curved ..] |
Re: SVM classifier One-vs-One and One-Vs-All clarification
Quote:
|
Re: SVM classifier One-vs-One and One-Vs-All clarification
The problems will specify which digits to label.
For example, problem 5 regards to "1 versus 5" classifier. |
Re: SVM classifier One-vs-One and One-Vs-All clarification
Ah!
So am I right in finally understanding that in Q2 and Q3 we have a boolean output corresponding to a single digit? And later questions are about detecting whether a digit is a "1" or a "5", given that it is one of these? Amazingly, when I read these questions I got stuck on the idea it was about some sort of generalisation of "one versus the rest". For example, I imagined there would be 45 hypotheses for "2 versus all", each corresponding to a pair of digits! :) |
All times are GMT -7. The time now is 06:03 AM. |
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. Abu-Mostafa, Malik Magdon-Ismail, and Hsuan-Tien Lin, and participants in the Learning From Data MOOC by Yaser S. Abu-Mostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.