From fda17273dec4f2a8768ae58a4fc507fe87d2ae87 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Thu, 10 Dec 2015 17:41:05 +0300 Subject: [PATCH] applying patch by rxtsolar: https://github.com/Itseez/opencv/pull/5422 for the master branch (even though it's actually not that important here) --- modules/ml/src/svm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ml/src/svm.cpp b/modules/ml/src/svm.cpp index 402de3f1df..0fd73a3891 100644 --- a/modules/ml/src/svm.cpp +++ b/modules/ml/src/svm.cpp @@ -1822,8 +1822,8 @@ public: } } - params = best_params; class_labels = class_labels0; + setParams(best_params); return do_train( samples, responses ); }