C# Class AIMA.Core.Learning.Learners.DecisionTreeLearner

Inheritance: Learner
Datei anzeigen Open project: PaulMineau/AIMA.Net Class Usage Examples

Public Methods

Method Description
DecisionTreeLearner ( ) : System
DecisionTreeLearner ( DecisionTree tree, String defaultValue ) : System
getDecisionTree ( ) : DecisionTree
predict ( Example e ) : String
test ( DataSet ds ) : int[]
train ( DataSet ds ) : void

Private Methods

Method Description
allExamplesHaveSameClassification ( DataSet ds ) : bool
chooseAttribute ( DataSet ds, List attributeNames ) : String
decisionTreeLearning ( DataSet ds, List attributeNames, ConstantDecisonTree defaultTree ) : DecisionTree
majorityValue ( DataSet ds ) : ConstantDecisonTree

Method Details

DecisionTreeLearner() public method

public DecisionTreeLearner ( ) : System
return System

DecisionTreeLearner() public method

public DecisionTreeLearner ( DecisionTree tree, String defaultValue ) : System
tree AIMA.Core.Learning.Inductive.DecisionTree
defaultValue String
return System

getDecisionTree() public method

public getDecisionTree ( ) : DecisionTree
return AIMA.Core.Learning.Inductive.DecisionTree

predict() public method

public predict ( Example e ) : String
e AIMA.Core.Learning.Framework.Example
return String

test() public method

public test ( DataSet ds ) : int[]
ds AIMA.Core.Learning.Framework.DataSet
return int[]

train() public method

public train ( DataSet ds ) : void
ds AIMA.Core.Learning.Framework.DataSet
return void