Skip to content

Refactored libsvm for easily plugging custom kernels (e.g., Tree Kernel) written in Java.

License

BSD-3-Clause, BSD-3-Clause licenses found

Licenses found

BSD-3-Clause
COPYRIGHT
BSD-3-Clause
COPYRIGHT.libsvm
Notifications You must be signed in to change notification settings

syeedibnfaiz/libsvm-java-kernel

Refactored LibSVM in Java making it easy to plug in a custom kernel.

Use demo.sh to run the demo program. To learn how you can use the library see src/Demo.java.

To write a kernel all you have to do is to implement kernel.CustomKernel and then register your kernel with the kernel.KernelManager.

For example, the following code snippet registers an anonymous custom kernel: KernelManager.setCustomKernel(new CustomKernel() { @Override public double evaluate(svm_node x, svm_node y) { //do something fancy return 0.3141592654; } });

Syeed Ibn Faiz University of Western Ontario syeedibnfaiz@gmail.com

About

Refactored libsvm for easily plugging custom kernels (e.g., Tree Kernel) written in Java.

Resources

License

BSD-3-Clause, BSD-3-Clause licenses found

Licenses found

BSD-3-Clause
COPYRIGHT
BSD-3-Clause
COPYRIGHT.libsvm

Stars

Watchers

Forks

Releases

No releases published

Packages