01-13-2014 11:01 AM
Dr Bo Fu is a Certified LabVIEW Developer and joined the Austin Consultants team in December 2013 as a Systems Engineer. Dr Fu joins us from the University of Nottingham where he completed his PhD and did a Postdoc in Electronic Engineering, developing a high-speed dynamic-sampling camera and a real-time control spatial light modulator.
Dr Fu is currently working on a very exciting project involving a combination of different AI techniques including Neural Networks, K-means and SVN to name a few. Dr Fu posts regularly on his blog and has written the post below about using SVM to do multi-class classification.
Dr Fu explains:
“Today I came across a problem to use SVM to do multi-class classification. The toolkit downloaded from NI did not provide the ability to do multi-class classification with SVM but only for two classes (it’s quite a useful tool still). So I took use of the SVM VIs and made a multi-class version using one-vs-all method.
There is a good tutorial on one-vs-all or one-vs-rest classification by Andrew Ng. We pick one class each iteration as Class A and make the rest classes as Class B. Only the test data that locate in Class A are allocated to the known class. Here is the code:
The original trained labelled data are classified as Class 0, 1, 2, … N. In the i-th iteration, only the data from Class i are re-classified to Class 1 and the rest data are re-classified to Class 0. When the test data locate in class 1 area, they are classified as Class i. Any unsorted data are left in Class -1.
When I test the performance of this one-vs-all classifier, the result seems fine.
08-23-2014 01:40 AM
is this supported in the labview version 2013
can you please expline me detail about this code
my mail id : rathodrajesha0@gmail.com
please send me to this mail....
08-26-2014 04:13 AM
It may help if you describe your application and we can discuss if SVM is the best solution. Please feel free to drop me an email if more questions. Cheers.
I sent an email to your inbox as well.
Regards,
Bo
04-03-2016 11:55 PM
Sir,
Thanks for the above information about multi-class SVM. I have to classifiy the fault samples in multiple classes using SVM. I tried the method discussed above. I had to change some data-types due to data type errors. Unfortunately, I'm not getting the desired results. Can you please provide the VI used or any email id to contact..
Best regards!
04-04-2016 05:09 AM
Hi akanksha,
We added a link to download the code in http://www.austinconsultants.co.uk/multiclass-classification-in-labview-using-svm-and-one-vs-all-met... Hope that will help. Cheers.
Regards,
Bo