CvSVMParams.class_weights not getting set in Python (Bug #3655)
Description
Hey,
I came across a bug in the python bindings of CvSVM. The parameters CvSVMParams include a parameter to set class weights (or a bias), however these settings do not go through to the core when setting it in Python. In modules/ml/include/opencv2/ml.hpp the class_weights parameter is not flagged with CV_PROP_RW and is therefore not parsed by the hdr_parser.py. If this is added, a linking error spawns because it can't convert a CvMat* to a python object and vice versa.
Check http://answers.opencv.org/question/31805/svm-weights-parameter-not-set-through-python for more information.
Associated revisions
Merge pull request #3655 from asmorkalov:remove_opencv_testing_sh
History
Updated by Maksim Shabunin almost 10 years ago
Should be fixed in 3.0-rc1 version: https://github.com/Itseez/opencv/pull/3846 + https://github.com/Itseez/opencv/pull/3759 + https://github.com/Itseez/opencv/pull/3679
- Status changed from New to Done
- Pull request set to https://github.com/Itseez/opencv/pull/3846