Show / Hide Table of Contents

Class Boost

Boosted tree classifier derived from DTrees

Inheritance
System.Object
DisposableObject
DisposableCvObject
Algorithm
StatModel
DTrees
Boost
Implements
ICvPtrHolder
Inherited Members
DTrees.MaxCategories
DTrees.MaxDepth
DTrees.MinSampleCount
DTrees.CVFolds
DTrees.UseSurrogates
DTrees.Use1SERule
DTrees.TruncatePrunedTree
DTrees.RegressionAccuracy
DTrees.Priors
DTrees.GetRoots()
DTrees.GetNodes()
DTrees.GetSplits()
DTrees.GetSubsets()
StatModel.GetVarCount()
StatModel.Empty()
StatModel.IsTrained()
StatModel.IsClassifier()
StatModel.Train(TrainData, Int32)
StatModel.Train(InputArray, SampleTypes, InputArray)
StatModel.CalcError(TrainData, Boolean, OutputArray)
StatModel.Predict(InputArray, OutputArray, StatModel.Flags)
Algorithm.Write(FileStorage)
Algorithm.Read(FileNode)
Algorithm.Save(String)
Algorithm.GetDefaultName()
DisposableCvObject.ptr
DisposableCvObject.CvPtr
DisposableObject.DataHandle
DisposableObject.IsDisposed
DisposableObject.IsEnabledDispose
DisposableObject.AllocatedMemory
DisposableObject.AllocatedMemorySize
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.AllocGCHandle(Object)
DisposableObject.AllocMemory(Int32)
DisposableObject.NotifyMemoryPressure(Int64)
DisposableObject.ThrowIfDisposed()
Namespace: OpenCvSharp.ML
Assembly: OpenCvSharp.dll
Syntax
public class Boost : DTrees, ICvPtrHolder

Constructors

| Improve this Doc View Source

Boost(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 Source

BoostType

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
| Improve this Doc View Source

WeakCount

The number of weak classifiers. Default value is 100.

Declaration
public int WeakCount { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

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 Source

Create()

Creates the empty model.

Declaration
public static Boost Create()
Returns
Type Description
Boost
| Improve this Doc View Source

DisposeManaged()

Releases managed resources

Declaration
protected override void DisposeManaged()
Overrides
DTrees.DisposeManaged()
| Improve this Doc View Source

DisposeUnmanaged()

Declaration
protected override void DisposeUnmanaged()
Overrides
DTrees.DisposeUnmanaged()
| Improve this Doc View Source

Get()

Declaration
public override IntPtr Get()
Returns
Type Description
IntPtr
Overrides
DTrees.Get()
| Improve this Doc View Source

Load(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
| Improve this Doc View Source

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

Implements

ICvPtrHolder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX