Access to the Support Vector Table in One-Class SVM using LibSVM
Hello,
为了计算得分,我需要阿尔法column in the Support Vector Table of the One-Class SVM model. For information, the model was calculated using the LibSVM bloc. Is there a way to extract the example set corresponding to this table ? The idea is to extract this information automatically. I would like to avoid doing it manually.
Kind regards,
Tagged:
0
Answers
Hi keke,
the only way i know to access this is using Execute Script. I think@IngoRMposted something somewhere.. Otherwise we need to rebuilt this.
~Martin
Dortmund, Germany
Hello Martin,
Thanks for your reply.
Is there a way to do it using a Execute Python instead? I don't know java a lot.
Thanks for your help.
Kind regards.
Hey Keke,
sorry - we need to use javascript (more precise: groovy). The advantage of Javascript is, that we can use the rapidminer java classes. That means we can pass over an SVM Model class and use it. Python would not understand our SVM Model class.
But don't worry - we will build it together. Just need to find some time for some coding.
I guess, we just need to write out the svm_coeff from this class:https://github.com/rapidminer/rapidminer-studio/blob/master/src/main/java/libsvm/svm_model.javaso its kind of straight forward
~Martin
Dortmund, Germany
Ok, i quickly built it.
The script below just creates one col with the alphas. It's by the way not the libsvm class but RM's kernel model class which is used.
Best,
Martin
Dortmund, Germany