Closed sagi closed 5 years ago
The function get_SV() in svm.py returns the support vectors. It accidently adds a '-1' key in the dictionary that represents a support vector.
The '-1' is used by the C implementation to denote the last svm_node of a vector in the training set x.
Many thanks for pointing out this problem. The patch has been applied for the next release.
The function get_SV() in svm.py returns the support vectors. It accidently adds a '-1' key in the dictionary that represents a support vector.
The '-1' is used by the C implementation to denote the last svm_node of a vector in the training set x.