From 3f0a51bda153567b24b13132236e3d3497a6b0b4 Mon Sep 17 00:00:00 2001 From: Marina Noskova Date: Fri, 26 Feb 2016 14:40:23 +0300 Subject: [PATCH] Fixed documentation. --- modules/ml/include/opencv2/ml.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/ml/include/opencv2/ml.hpp b/modules/ml/include/opencv2/ml.hpp index 666710bad1..29e4685d15 100644 --- a/modules/ml/include/opencv2/ml.hpp +++ b/modules/ml/include/opencv2/ml.hpp @@ -1554,10 +1554,8 @@ Note that the parameters margin regularization, initial step size, and step decr To use SVMSGD algorithm do as follows: -- first, create the SVMSGD object. - -- then set parameters (model type, margin type, margin regularization, initial step size, step decreasing power) using the functions - setSvmsgdType(), setMarginType(), setMarginRegularization(), setInitialStepSize(), and setStepDecreasingPower(), or the function setOptimalParameters(). +- first, create the SVMSGD object. The algoorithm will set optimal parameters by default, but you can set your own parameters via functions setSvmsgdType(), + setMarginType(), setMarginRegularization(), setInitialStepSize(), and setStepDecreasingPower(). - then the SVM model can be trained using the train features and the correspondent labels by the method train().