Class Boost
- Namespace
- OpenCvSharp.ML
- Assembly
- OpenCvSharp.dll
Boosted tree classifier derived from DTrees
public class Boost : DTrees, IDisposable, ICvPtrHolder
- Inheritance
-
Boost
- Implements
- Inherited Members
Constructors
Boost(nint)
Creates instance by raw pointer cv::ml::Boost*
protected Boost(nint p)
Parameters
pnint
Properties
BoostType
Type of the boosting algorithm. See Boost::Types. Default value is Boost::REAL.
public Boost.Types BoostType { get; set; }
Property Value
WeakCount
The number of weak classifiers. Default value is 100.
public int WeakCount { get; set; }
Property Value
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.
public double WeightTrimRate { get; set; }
Property Value
Methods
Create()
Creates the empty model.
public static Boost Create()
Returns
DisposeManaged()
Releases managed resources
protected override void DisposeManaged()
Load(string)
Loads and creates a serialized model from a file.
public static Boost Load(string filePath)
Parameters
filePathstring
Returns
LoadFromString(string)
Loads algorithm from a String.
public static Boost LoadFromString(string strModel)
Parameters
strModelstringhe string variable containing the model you want to load.