3
$\begingroup$

I am using Weka to train a model from few days. I know Weka use Java code to implement a classifier. I also heard that Weka has some github pages to describe the java code for the classifiers. I like to know the SVM java code which is used in WEKA. I found few webpages describing Java code for SVM classifiers for WEKA. I can not understand which one is there official page.

Providing me the link to SVM GitHub page would be very helpful.

Thank you.

$\endgroup$

1 Answer 1

5
$\begingroup$

The official Weka source code is stored in a local Gitlab git repository (not on Github).

Note that there are two versions of SVM commonly used with Weka:

$\endgroup$
3
  • $\begingroup$ I am looking for the code to understand how categorical data is handled in SVM. Because I found if I feed the SVM classifier with categorical data classifier did not throw the error, which is common for sklearn. So I want to know what part of the java code categorical data has been handled. $\endgroup$
    – Encipher
    Oct 8, 2022 at 22:20
  • $\begingroup$ @Encipher in Weka categorical features must be declared as nominal in the arff file, this is how it's handled (not specific to SVM). I assume that any feature declared as nominal is one-hot-encoded, but I never actually checked the code. $\endgroup$
    – Erwan
    Oct 9, 2022 at 20:21
  • $\begingroup$ Yeah I searched and found they have an unsupervised filter nominaltobanry which is based on one hot encoding and they just import that file on SVM. $\endgroup$
    – Encipher
    Oct 10, 2022 at 20:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.