C# 클래스 numl.Supervised.DecisionTree.DecisionTreeGenerator

A decision tree generator.
상속: Generator
파일 보기 프로젝트 열기: sethjuarez/numl 1 사용 예제들

공개 메소드들

메소드 설명
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