Table of Contents

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

p nint

Properties

BoostType

Type of the boosting algorithm. See Boost::Types. Default value is Boost::REAL.

public Boost.Types BoostType { get; set; }

Property Value

Boost.Types

WeakCount

The number of weak classifiers. Default value is 100.

public int WeakCount { get; set; }

Property Value

int

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

double

Methods

Create()

Creates the empty model.

public static Boost Create()

Returns

Boost

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

filePath string

Returns

Boost

LoadFromString(string)

Loads algorithm from a String.

public static Boost LoadFromString(string strModel)

Parameters

strModel string

he string variable containing the model you want to load.

Returns

Boost