C# Class numl.Supervised.DecisionTree.DecisionTreeGenerator

A decision tree generator.
Inheritance: Generator
显示文件 Open project: sethjuarez/numl Class Usage Examples

Public Methods

Method 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

Method 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 method

Constructor.
public DecisionTreeGenerator ( Descriptor descriptor ) : System
descriptor Descriptor the descriptor.
return System

DecisionTreeGenerator() public method

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.
return System

Generate() public method

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.
return IModel

SetHint() public method

Sets a hint.
public SetHint ( object o ) : void
o object The object to process.
return void