C# Class numl.Supervised.DecisionTree.DecisionTreeGenerator

A decision tree generator.
Inheritance: Generator
Afficher le fichier Open project: sethjuarez/numl Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

DecisionTreeGenerator() public méthode

Constructor.
public DecisionTreeGenerator ( Descriptor descriptor ) : System
descriptor Descriptor the descriptor.
Résultat System

DecisionTreeGenerator() public méthode

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.
Résultat System

Generate() public méthode

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.
Résultat IModel

SetHint() public méthode

Sets a hint.
public SetHint ( object o ) : void
o object The object to process.
Résultat void