|
Grail (C++)
1.2.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
3 #ifndef GRAIL_UNIQUE_TREE_DATASET_H
4 #define GRAIL_UNIQUE_TREE_DATASET_H
6 #include <initializer_list>
8 #include <unordered_set>
9 #include "../ISimulatedGameAction.hh"
10 #include "../DecisionTree/DTConsiderationType.hh"
16 class ISimulatedGameAction;
29 void Add(std::unique_ptr<TreeDataSample> sample);
36 const std::initializer_list<dt::DTConsiderationType>& considerationTypes);
39 std::unique_ptr<Dataset>
ConvertToDataset(
const std::vector<dt::DTConsiderationType>& considerationTypes);
43 std::unique_ptr<Dataset>
ConvertToDataset(dt::DTConsiderationType considerationType,
int count);
52 #endif //GRAIL_UNIQUE_TREE_DATASET_H
void Add(std::unique_ptr< TreeDataSample > sample)
Adds a new sample.
Definition: UniqueTreeDataset.cpp:13
Base class for all actions in SimulatedGame. Derive from it for your actions.
Definition: ISimulatedGameAction.hh:41
std::unique_ptr< Dataset > ConvertToDataset(const std::initializer_list< dt::DTConsiderationType > &considerationTypes)
Converts to a flat dataset - with the chosen decision - that is suitable for constructing the Decisio...
Definition: UniqueTreeDataset.cpp:31
Helper that provides a HashForLearning() method. Used with ISimulatedGameAction only by OfflineLearni...
Definition: ISimulatedGameAction.hh:16
Helper that provides a EqualsForLearning() method. Used with ISimulatedGameAction only by OfflineLear...
Definition: ISimulatedGameAction.hh:26
Definition: UniqueTreeDataset.hh:23