Table of Contents

Struct DTrees.Node

Namespace
OpenCvSharp.ML
Assembly
OpenCvSharp.dll

The class represents a decision tree node.

[SuppressMessage("Microsoft.Design", "CA1815: Override equals and operator equals on value types")]
public struct DTrees.Node
Inherited Members

Fields

ClassIdx

Class index normalized to 0..class_count-1 range and assigned to the node. It is used internally in classification trees and tree ensembles.

public int ClassIdx

Field Value

int

DefaultDir

Default direction where to go (-1: left or +1: right). It helps in the case of missing values.

public int DefaultDir

Field Value

int

Left

Index of the left child node

public int Left

Field Value

int

Parent

Index of the parent node

public int Parent

Field Value

int

Right

Index of right child node

public int Right

Field Value

int

Split

Index of the first split

public int Split

Field Value

int

Value

Value at the node: a class label in case of classification or estimated function value in case of regression.

public double Value

Field Value

double