mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Documentation: fixed class/struc members documentation; added warning on incorrectly documented member
This commit is contained in:
+11
-11
@@ -69,6 +69,17 @@ CvBoostParams
|
||||
|
||||
Boosting training parameters.
|
||||
|
||||
There is one structure member that you can set directly:
|
||||
|
||||
.. ocv:member:: int split_criteria
|
||||
|
||||
Splitting criteria used to choose optimal splits during a weak tree construction. Possible values are:
|
||||
|
||||
* **CvBoost::DEFAULT** Use the default for the particular boosting method, see below.
|
||||
* **CvBoost::GINI** Use Gini index. This is default option for Real AdaBoost; may be also used for Discrete AdaBoost.
|
||||
* **CvBoost::MISCLASS** Use misclassification rate. This is default option for Discrete AdaBoost; may be also used for Real AdaBoost.
|
||||
* **CvBoost::SQERR** Use least squares criteria. This is default and the only option for LogitBoost and Gentle AdaBoost.
|
||||
|
||||
The structure is derived from :ocv:class:`CvDTreeParams` but not all of the decision tree parameters are supported. In particular, cross-validation is not supported.
|
||||
|
||||
All parameters are public. You can initialize them by a constructor and then override some of them directly if you want.
|
||||
@@ -96,17 +107,6 @@ The constructors.
|
||||
|
||||
See :ocv:func:`CvDTreeParams::CvDTreeParams` for description of other parameters.
|
||||
|
||||
Also there is one structure member that you can set directly:
|
||||
|
||||
.. ocv:member:: int split_criteria
|
||||
|
||||
Splitting criteria used to choose optimal splits during a weak tree construction. Possible values are:
|
||||
|
||||
* **CvBoost::DEFAULT** Use the default for the particular boosting method, see below.
|
||||
* **CvBoost::GINI** Use Gini index. This is default option for Real AdaBoost; may be also used for Discrete AdaBoost.
|
||||
* **CvBoost::MISCLASS** Use misclassification rate. This is default option for Discrete AdaBoost; may be also used for Real AdaBoost.
|
||||
* **CvBoost::SQERR** Use least squares criteria. This is default and the only option for LogitBoost and Gentle AdaBoost.
|
||||
|
||||
Default parameters are:
|
||||
|
||||
::
|
||||
|
||||
@@ -60,84 +60,84 @@ CvDTreeSplit
|
||||
.. ocv:struct:: CvDTreeSplit
|
||||
|
||||
|
||||
The structure represents a possible decision tree node split. It has public members:
|
||||
The structure represents a possible decision tree node split. It has public members:
|
||||
|
||||
.. ocv:member:: int var_idx
|
||||
.. ocv:member:: int var_idx
|
||||
|
||||
Index of variable on which the split is created.
|
||||
Index of variable on which the split is created.
|
||||
|
||||
.. ocv:member:: int inversed
|
||||
.. ocv:member:: int inversed
|
||||
|
||||
If it is not null then inverse split rule is used that is left and right branches are exchanged in the rule expressions below.
|
||||
If it is not null then inverse split rule is used that is left and right branches are exchanged in the rule expressions below.
|
||||
|
||||
.. ocv:member:: float quality
|
||||
.. ocv:member:: float quality
|
||||
|
||||
The split quality, a positive number. It is used to choose the best primary split, then to choose and sort the surrogate splits. After the tree is constructed, it is also used to compute variable importance.
|
||||
The split quality, a positive number. It is used to choose the best primary split, then to choose and sort the surrogate splits. After the tree is constructed, it is also used to compute variable importance.
|
||||
|
||||
.. ocv:member:: CvDTreeSplit* next
|
||||
.. ocv:member:: CvDTreeSplit* next
|
||||
|
||||
Pointer to the next split in the node list of splits.
|
||||
Pointer to the next split in the node list of splits.
|
||||
|
||||
.. ocv:member:: int[] subset
|
||||
.. ocv:member:: int[] subset
|
||||
|
||||
Bit array indicating the value subset in case of split on a categorical variable. The rule is: ::
|
||||
Bit array indicating the value subset in case of split on a categorical variable. The rule is: ::
|
||||
|
||||
if var_value in subset
|
||||
then next_node <- left
|
||||
else next_node <- right
|
||||
|
||||
.. ocv:member:: float ord::c
|
||||
.. ocv:member:: float ord::c
|
||||
|
||||
The threshold value in case of split on an ordered variable. The rule is: ::
|
||||
The threshold value in case of split on an ordered variable. The rule is: ::
|
||||
|
||||
if var_value < ord.c
|
||||
then next_node<-left
|
||||
else next_node<-right
|
||||
|
||||
.. ocv:member:: int ord::split_point
|
||||
.. ocv:member:: int ord::split_point
|
||||
|
||||
Used internally by the training algorithm.
|
||||
Used internally by the training algorithm.
|
||||
|
||||
CvDTreeNode
|
||||
-----------
|
||||
.. ocv:struct:: CvDTreeNode
|
||||
|
||||
|
||||
The structure represents a node in a decision tree. It has public members:
|
||||
The structure represents a node in a decision tree. It has public members:
|
||||
|
||||
.. ocv:member:: int class_idx
|
||||
.. ocv:member:: int class_idx
|
||||
|
||||
Class index normalized to 0..class_count-1 range and assigned to the node. It is used internally in classification trees and tree ensembles.
|
||||
|
||||
.. ocv:member:: int Tn
|
||||
.. ocv:member:: int Tn
|
||||
|
||||
Tree index in a ordered sequence of pruned trees. The indices are used during and after the pruning procedure. The root node has the maximum value ``Tn`` of the whole tree, child nodes have ``Tn`` less than or equal to the parent's ``Tn``, and nodes with :math:`Tn \leq CvDTree::pruned\_tree\_idx` are not used at prediction stage (the corresponding branches are considered as cut-off), even if they have not been physically deleted from the tree at the pruning stage.
|
||||
|
||||
.. ocv:member:: double value
|
||||
.. ocv:member:: double value
|
||||
|
||||
Value at the node: a class label in case of classification or estimated function value in case of regression.
|
||||
|
||||
.. ocv:member:: CvDTreeNode* parent
|
||||
.. ocv:member:: CvDTreeNode* parent
|
||||
|
||||
Pointer to the parent node.
|
||||
|
||||
.. ocv:member:: CvDTreeNode* left
|
||||
.. ocv:member:: CvDTreeNode* left
|
||||
|
||||
Pointer to the left child node.
|
||||
|
||||
.. ocv:member:: CvDTreeNode* right
|
||||
.. ocv:member:: CvDTreeNode* right
|
||||
|
||||
Pointer to the right child node.
|
||||
|
||||
.. ocv:member:: CvDTreeSplit* split
|
||||
.. ocv:member:: CvDTreeSplit* split
|
||||
|
||||
Pointer to the first (primary) split in the node list of splits.
|
||||
|
||||
.. ocv:member:: int sample_count
|
||||
.. ocv:member:: int sample_count
|
||||
|
||||
The number of samples that fall into the node at the training stage. It is used to resolve the difficult cases - when the variable for the primary split is missing and all the variables for other surrogate splits are missing too. In this case the sample is directed to the left if ``left->sample_count > right->sample_count`` and to the right otherwise.
|
||||
|
||||
.. ocv:member:: int depth
|
||||
.. ocv:member:: int depth
|
||||
|
||||
Depth of the node. The root node depth is 0, the child nodes depth is the parent's depth + 1.
|
||||
|
||||
|
||||
@@ -12,4 +12,4 @@ CvERTrees
|
||||
----------
|
||||
.. ocv:class:: CvERTrees : public CvRTrees
|
||||
|
||||
The class implements the Extremely randomized trees algorithm. ``CvERTrees`` is inherited from :ocv:class:`CvRTrees` and has the same interface, so see description of :ocv:class:`CvRTrees` class to get details. To set the training parameters of Extremely randomized trees the same class :ocv:class:`CvRTParams` is used.
|
||||
The class implements the Extremely randomized trees algorithm. ``CvERTrees`` is inherited from :ocv:class:`CvRTrees` and has the same interface, so see description of :ocv:class:`CvRTrees` class to get details. To set the training parameters of Extremely randomized trees the same class :ocv:struct:`CvRTParams` is used.
|
||||
|
||||
@@ -99,39 +99,39 @@ CvANN_MLP_TrainParams
|
||||
---------------------
|
||||
.. ocv:struct:: CvANN_MLP_TrainParams
|
||||
|
||||
Parameters of the MLP training algorithm. You can initialize the structure by a constructor or the individual parameters can be adjusted after the structure is created.
|
||||
Parameters of the MLP training algorithm. You can initialize the structure by a constructor or the individual parameters can be adjusted after the structure is created.
|
||||
|
||||
The back-propagation algorithm parameters:
|
||||
The back-propagation algorithm parameters:
|
||||
|
||||
.. ocv:member:: double bp_dw_scale
|
||||
.. ocv:member:: double bp_dw_scale
|
||||
|
||||
Strength of the weight gradient term. The recommended value is about 0.1.
|
||||
Strength of the weight gradient term. The recommended value is about 0.1.
|
||||
|
||||
.. ocv:member:: double bp_moment_scale
|
||||
.. ocv:member:: double bp_moment_scale
|
||||
|
||||
Strength of the momentum term (the difference between weights on the 2 previous iterations). This parameter provides some inertia to smooth the random fluctuations of the weights. It can vary from 0 (the feature is disabled) to 1 and beyond. The value 0.1 or so is good enough
|
||||
Strength of the momentum term (the difference between weights on the 2 previous iterations). This parameter provides some inertia to smooth the random fluctuations of the weights. It can vary from 0 (the feature is disabled) to 1 and beyond. The value 0.1 or so is good enough
|
||||
|
||||
The RPROP algorithm parameters (see [RPROP93]_ for details):
|
||||
The RPROP algorithm parameters (see [RPROP93]_ for details):
|
||||
|
||||
.. ocv:member:: double rp_dw0
|
||||
.. ocv:member:: double rp_dw0
|
||||
|
||||
Initial value :math:`\Delta_0` of update-values :math:`\Delta_{ij}`.
|
||||
Initial value :math:`\Delta_0` of update-values :math:`\Delta_{ij}`.
|
||||
|
||||
.. ocv:member:: double rp_dw_plus
|
||||
.. ocv:member:: double rp_dw_plus
|
||||
|
||||
Increase factor :math:`\eta^+`. It must be >1.
|
||||
Increase factor :math:`\eta^+`. It must be >1.
|
||||
|
||||
.. ocv:member:: double rp_dw_minus
|
||||
.. ocv:member:: double rp_dw_minus
|
||||
|
||||
Decrease factor :math:`\eta^-`. It must be <1.
|
||||
Decrease factor :math:`\eta^-`. It must be <1.
|
||||
|
||||
.. ocv:member:: double rp_dw_min
|
||||
.. ocv:member:: double rp_dw_min
|
||||
|
||||
Update-values lower limit :math:`\Delta_{min}`. It must be positive.
|
||||
Update-values lower limit :math:`\Delta_{min}`. It must be positive.
|
||||
|
||||
.. ocv:member:: double rp_dw_max
|
||||
.. ocv:member:: double rp_dw_max
|
||||
|
||||
Update-values upper limit :math:`\Delta_{max}`. It must be >1.
|
||||
Update-values upper limit :math:`\Delta_{max}`. It must be >1.
|
||||
|
||||
|
||||
CvANN_MLP_TrainParams::CvANN_MLP_TrainParams
|
||||
|
||||
@@ -18,19 +18,19 @@ CvParamGrid
|
||||
-----------
|
||||
.. ocv:struct:: CvParamGrid
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
.. ocv:member:: double CvParamGrid::min_val
|
||||
.. ocv:member:: double CvParamGrid::min_val
|
||||
|
||||
Minimum value of the statmodel parameter.
|
||||
Minimum value of the statmodel parameter.
|
||||
|
||||
.. ocv:member:: double CvParamGrid::max_val
|
||||
.. ocv:member:: double CvParamGrid::max_val
|
||||
|
||||
Maximum value of the statmodel parameter.
|
||||
Maximum value of the statmodel parameter.
|
||||
|
||||
.. ocv:member:: double CvParamGrid::step
|
||||
.. ocv:member:: double CvParamGrid::step
|
||||
|
||||
Logarithmic step for iterating the statmodel parameter.
|
||||
Logarithmic step for iterating the statmodel parameter.
|
||||
|
||||
The grid determines the following iteration sequence of the statmodel parameter values:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user