Show / Hide Table of Contents

Struct DTrees.Node

The class represents a decision tree node.

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: OpenCvSharp.ML
Assembly: OpenCvSharp.dll
Syntax
public struct Node

Fields

| Improve this Doc View Source

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.

Declaration
public int ClassIdx
Field Value
Type Description
System.Int32
| Improve this Doc View Source

DefaultDir

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

Declaration
public int DefaultDir
Field Value
Type Description
System.Int32
| Improve this Doc View Source

Left

Index of the left child node

Declaration
public int Left
Field Value
Type Description
System.Int32
| Improve this Doc View Source

Parent

Index of the parent node

Declaration
public int Parent
Field Value
Type Description
System.Int32
| Improve this Doc View Source

Right

Index of right child node

Declaration
public int Right
Field Value
Type Description
System.Int32
| Improve this Doc View Source

Split

Index of the first split

Declaration
public int Split
Field Value
Type Description
System.Int32
| Improve this Doc View Source

Value

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

Declaration
public double Value
Field Value
Type Description
System.Double
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX