![]() |
RBF using a library package?
Hi all,
I have written some code in Octave to simulate the regular RBF model for questions 15 - 19 on the final. However, mindful of the fact that I don't usually write bug-free code the first time :) I was wondering if anyone knew of a library/package like libsvm for regular RBF's that I could use to validate the results I'm getting. Thanks for any pointers. -Samir PS - On an unrelated note, these simulations are bringing my 2-year-old Mac down to its knees...vectorized code or not. |
Re: RBF using a library package?
Quote:
I've learned a huge amount about constrained optimization and SVM by rolling my own code (I don't learn anything unless I do it hands on) but, truth be told, there aren't any simple test data sets out there that I have found. I just use a simple 2D triangular test pattern ( (-1,-1) (0,1) (1,-1) ) with a constant hypothesis at Y=0 as a baseline confirmation that the kernel classification process is correct. I had the impression from earlier discussions that SVMLIB has various RBF options. There is a web site featuring a C# port of SVMLIB and the guy at that site had some test files he brought over from the SVMLIB site. There are many domain-specific SVMLIB data files at the SVMLIB site also. |
Re: RBF using a library package?
Python with numpy can handle the creation of the array with distances (between centers/points) as well as the "fi" matrix with exponents (basic RBF) with very few operations (all heavy work done under the hood). Basically almost all the matrix operations without loops
|
Re: RBF using a library package?
Quote:
I was wondering if you will be able to get your Octave implementation of SVM with RBF working. For some weird reason my Octave implementation is not able to classify a linearly separable data which libsvm is able to do. |
Re: RBF using a library package?
Quote:
For SVM with RBF, I used libsvm. -Samir |
Re: RBF using a library package?
Quote:
but I don't know how to use it. |
Re: RBF using a library package?
Some part of the implementation can leverage existing functions in R
kmeans function in R implements Lloyd's algorithm for RBF. It also has an option for specifying the initial starting points (or, we could let it choose randomly). It returns the centers. We still need to find the weights and do the classification. |
Re: RBF using a library package?
Quote:
BTW, I think implementing the Lloyd algorithm is not that difficult to debug. |
All times are GMT -7. The time now is 06:27 PM. |
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.