cv::ml::ParamGrid Class ReferenceMachine Learning
The structure represents the logarithmic grid range of statmodel parameters. More...
#include <opencv2/ml.hpp>
Public Member Functions | |
The structure represents the logarithmic grid range of statmodel parameters. More...
#include <opencv2/ml.hpp>
Public Member Functions | |
| ParamGrid () |
| Default constructor. |
| ParamGrid (double _minVal, double _maxVal, double _logStep) |
| Constructor with parameters. |
The structure represents the logarithmic grid range of statmodel parameters.
It is used for optimizing statmodel accuracy by varying model parameters, the accuracy estimate being computed by cross-validation.
| cv::ml::ParamGrid::ParamGrid | ( | ) |
Default constructor.
| cv::ml::ParamGrid::ParamGrid | ( | double | _minVal, |
| double | _maxVal, | ||
| double | _logStep ) |
Constructor with parameters.
| static |
| Python: | ||||
|---|---|---|---|---|
| cv.ml.ParamGrid.create( | [, minVal[, maxVal[, logstep]]] | ) -> | retval | |
| cv.ml.ParamGrid_create( | [, minVal[, maxVal[, logstep]]] | ) -> | retval |
Creates a ParamGrid Ptr that can be given to the SVM::trainAuto method.
| minVal | minimum value of the parameter grid |
| maxVal | maximum value of the parameter grid |
| logstep | Logarithmic step for iterating the statmodel parameter |
| double cv::ml::ParamGrid::logStep |
Logarithmic step for iterating the statmodel parameter.
The grid determines the following iteration sequence of the statmodel parameter values:
where \(n\) is the maximal index satisfying
The grid is logarithmic, so logStep must always be greater than 1. Default value is 1.
| double cv::ml::ParamGrid::maxVal |
Maximum value of the statmodel parameter. Default value is 0.
| double cv::ml::ParamGrid::minVal |
Minimum value of the statmodel parameter. Default value is 0.