C# Class AIMA.Core.Learning.Inductive.DecisionTree

Show file Open project: PaulMineau/AIMA.Net Class Usage Examples

Public Methods

Method Description
DecisionTree ( String attributeName ) : System
ToString ( ) : String
ToString ( int depth, StringBuilder buf ) : String
addLeaf ( String attributeValue, String decision ) : void
addNode ( String attributeValue, DecisionTree tree ) : void
getAttributeName ( ) : String
getStumpFor ( DataSet ds, String attributeName, String attributeValue, String returnValueIfMatched, List unmatchedValues, String returnValueIfUnmatched ) : DecisionTree
getStumpsFor ( DataSet ds, String returnValueIfMatched, String returnValueIfUnmatched ) : List
predict ( Example e ) : Object

Protected Methods

Method Description
DecisionTree ( ) : System

Method Details

DecisionTree() protected method

protected DecisionTree ( ) : System
return System

DecisionTree() public method

public DecisionTree ( String attributeName ) : System
attributeName String
return System

ToString() public method

public ToString ( ) : String
return String

ToString() public method

public ToString ( int depth, StringBuilder buf ) : String
depth int
buf StringBuilder
return String

addLeaf() public method

public addLeaf ( String attributeValue, String decision ) : void
attributeValue String
decision String
return void

addNode() public method

public addNode ( String attributeValue, DecisionTree tree ) : void
attributeValue String
tree DecisionTree
return void

getAttributeName() public method

public getAttributeName ( ) : String
return String

getStumpFor() public static method

public static getStumpFor ( DataSet ds, String attributeName, String attributeValue, String returnValueIfMatched, List unmatchedValues, String returnValueIfUnmatched ) : DecisionTree
ds AIMA.Core.Learning.Framework.DataSet
attributeName String
attributeValue String
returnValueIfMatched String
unmatchedValues List
returnValueIfUnmatched String
return DecisionTree

getStumpsFor() public static method

public static getStumpsFor ( DataSet ds, String returnValueIfMatched, String returnValueIfUnmatched ) : List
ds AIMA.Core.Learning.Framework.DataSet
returnValueIfMatched String
returnValueIfUnmatched String
return List

predict() public method

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