 |
Grail (C++)
1.1.1
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
1 #ifndef GRAIL_UNIQUE_TREE_DATASET_H
2 #define GRAIL_UNIQUE_TREE_DATASET_H
4 #include <initializer_list>
6 #include <unordered_set>
7 #include "../ISimulatedGameAction.hh"
8 #include "../DecisionTree/DTConsiderationType.hh"
15 class ISimulatedGameAction;
24 void Add(std::unique_ptr<TreeDataSample> sample);
31 const std::initializer_list<DTConsiderationType>& considerationTypes);
34 std::unique_ptr<Dataset>
ConvertToDataset(
const std::vector<DTConsiderationType>& considerationTypes);
38 std::unique_ptr<Dataset>
ConvertToDataset(DTConsiderationType considerationType,
int count);
46 #endif //GRAIL_UNIQUE_TREE_DATASET_H
Base class for all actions in SimulatedGame. Derive from it for your actions.
Definition: ISimulatedGameAction.hh:39
Definition: UniqueTreeDataset.hh:18
Helper that provides a EqualsForLearning() method. Used with ISimulatedGameAction only by OfflineLear...
Definition: ISimulatedGameAction.hh:24
std::unique_ptr< Dataset > ConvertToDataset(const std::initializer_list< DTConsiderationType > &considerationTypes)
Converts to a flat dataset - with the chosen decision - that is suitable for constructing the Decisio...
Definition: UniqueTreeDataset.cpp:27
void Add(std::unique_ptr< TreeDataSample > sample)
Adds a new sample.
Definition: UniqueTreeDataset.cpp:9
Helper that provides a HashForLearning() method. Used with ISimulatedGameAction only by OfflineLearni...
Definition: ISimulatedGameAction.hh:14