Class Boost
Boosted tree classifier derived from DTrees
Implements
Inherited Members
Namespace: OpenCvSharp.ML
Assembly: OpenCvSharp.dll
Syntax
public class Boost : DTrees, ICvPtrHolder
Constructors
| Improve this Doc View SourceBoost(IntPtr)
Creates instance by raw pointer cv::ml::Boost*
Declaration
protected Boost(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | p |
Properties
| Improve this Doc View SourceBoostType
Type of the boosting algorithm. See Boost::Types. Default value is Boost::REAL.
Declaration
public Boost.Types BoostType { get; set; }
Property Value
Type | Description |
---|---|
Boost.Types |
WeakCount
The number of weak classifiers. Default value is 100.
Declaration
public int WeakCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
WeightTrimRate
A threshold between 0 and 1 used to save computational time. Samples with summary weight \f$\leq 1 - weight_trim_rate do not participate in the next iteration of training. Set this parameter to 0 to turn off this functionality. Default value is 0.95.
Declaration
public double WeightTrimRate { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceCreate()
Creates the empty model.
Declaration
public static Boost Create()
Returns
Type | Description |
---|---|
Boost |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()
Overrides
| Improve this Doc View SourceLoad(String)
Loads and creates a serialized model from a file.
Declaration
public static Boost Load(string filePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath |
Returns
Type | Description |
---|---|
Boost |
LoadFromString(String)
Loads algorithm from a String.
Declaration
public static Boost LoadFromString(string strModel)
Parameters
Type | Name | Description |
---|---|---|
System.String | strModel | he string variable containing the model you want to load. |
Returns
Type | Description |
---|---|
Boost |