|
Grail (C++)
1.2.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
3 #ifndef GRAIL_C45_ALGORITHM_H
4 #define GRAIL_C45_ALGORITHM_H
7 #include <unordered_set>
8 #include "C45IterationParameters.h"
9 #include "C45ValueDecisionCounter.h"
11 #include "../DecisionTree/DecisionNode.h"
17 class ISimulatedGameAction;
34 std::unique_ptr<dt::DecisionNode<ISimulatedGameAction>>
ConstructTree(
36 int maxDepth = dt::decisionTreeMaxDepth);
47 std::unique_ptr<dt::DecisionNode<ISimulatedGameAction>> PerformSplit(
52 std::unordered_set<int> usedColumns;
60 #endif //GRAIL_C45_ALGORITHM_H
The whole class should be INTERNAL; part of the private interface.
Definition: C45IterationParameters.h:16
Base class for all actions in SimulatedGame. Derive from it for your actions.
Definition: ISimulatedGameAction.hh:41
std::unique_ptr< dt::DecisionNode< ISimulatedGameAction > > ConstructTree(Dataset &dataset, int maxDepth=dt::decisionTreeMaxDepth)
Constructs a new decision tree based on the provided dataset. The decision type is given by generic a...
Definition: C45Algorithm.cpp:59
const std::unordered_set< int > & GetUsedColumns() const
Gets indices of columns in the dataset used for learning with the C4.5 Algorithm that were actually u...
Definition: C45Algorithm.cpp:160
Definition: Dataset.hh:23
This class encapsulates the C4.5 Algorithm used to generate a decision tree (see Grail....
Definition: C45Algorithm.h:25