Grail (C#)  1.2.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
Grail.SimulatedGames.OfflineLearning.C45Algorithm< TDecisionType > Class Template Reference

This class encapsulates the C4.5 Algorithm used to generate a decision tree (see Grail.Simulation.DecisionTree) based on the dataset provided. More...

Public Member Functions

DecisionNode< TDecisionType > ConstructTree (Dataset< TDecisionType > dataset, int maxDepth=int.MaxValue)
 Constructs a new decision tree based on the provided dataset. The decision type is given by generic argument TDecisionType. More...
 

Properties

HashSet< int > UsedColumns [get]
 Gets indices of columns in the dataset used for learning with the C4.5 Algorithm that were actually used when creating the decision tree. More...
 

Detailed Description

This class encapsulates the C4.5 Algorithm used to generate a decision tree (see Grail.Simulation.DecisionTree) based on the dataset provided.

Template Parameters
TDecisionType

Member Function Documentation

◆ ConstructTree()

DecisionNode<TDecisionType> Grail.SimulatedGames.OfflineLearning.C45Algorithm< TDecisionType >.ConstructTree ( Dataset< TDecisionType >  dataset,
int  maxDepth = int.MaxValue 
)
inline

Constructs a new decision tree based on the provided dataset. The decision type is given by generic argument TDecisionType.

Parameters
datasetA dataset that contains training data for the decision tree
maxDepthOptionally, you may limit the depth of the decision tree to most important levels
Returns

Property Documentation

◆ UsedColumns

HashSet<int> Grail.SimulatedGames.OfflineLearning.C45Algorithm< TDecisionType >.UsedColumns
get

Gets indices of columns in the dataset used for learning with the C4.5 Algorithm that were actually used when creating the decision tree.


The documentation for this class was generated from the following file: