Ticket #1143 (new wish)
Opened 2 years ago
SVM - custom kernels
|Reported by:||lanz||Owned by:|
Currently, after setting kernel_func it is immediately transformed into an instance of KernelFunc and getting the original kernel object or its attributes is impossible.
import Orange svm = Orange.classification.svm.SVMLearner() svm.kernel_type = svm.Custom mykernel = lambda i1, i2: 0 mykernel.gamma = 1 svm.kernel_func = mykernel svm.kernel_func.gamma # does not work
It would be useful to be able to access the kernel object (to see which one it is, see its parameters, ...).