C# Класс numl.Supervised.DecisionTree.DecisionTreeGenerator

A decision tree generator.
Наследование: Generator
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DecisionTreeGenerator ( Descriptor descriptor ) : System

Constructor.

DecisionTreeGenerator ( int depth = 5, int width = 2, Descriptor descriptor = null, Type impurityType = null, double hint = double.Epsilon ) : System

Constructor.

Generate ( Matrix X, Vector y ) : IModel

Generates.

SetHint ( object o ) : void

Sets a hint.

Приватные методы

Метод Описание
BuildLeafNode ( double val ) : Node
BuildTree ( Matrix x, Vector y, int depth, List used, Tree tree ) : Node

Builds a tree.

GetBestSplit ( Matrix x, Vector y, List used ) : Tuple

Gets best split.

Описание методов

DecisionTreeGenerator() публичный Метод

Constructor.
public DecisionTreeGenerator ( Descriptor descriptor ) : System
descriptor Descriptor the descriptor.
Результат System

DecisionTreeGenerator() публичный Метод

Constructor.
Thrown when the requested operation is invalid.
public DecisionTreeGenerator ( int depth = 5, int width = 2, Descriptor descriptor = null, Type impurityType = null, double hint = double.Epsilon ) : System
depth int (Optional) The depth.
width int (Optional) the width.
descriptor Descriptor (Optional) the descriptor.
impurityType System.Type (Optional) type of the impurity.
hint double (Optional) the hint.
Результат System

Generate() публичный Метод

Generates.
Thrown when the requested operation is invalid.
public Generate ( Matrix X, Vector y ) : IModel
X Matrix The Matrix to process.
y numl.Math.LinearAlgebra.Vector The Vector to process.
Результат IModel

SetHint() публичный Метод

Sets a hint.
public SetHint ( object o ) : void
o object The object to process.
Результат void