 |
Grail (C++)
1.1.1
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
1 #ifndef GRAIL_OFFLINE_LEARNER_H
2 #define GRAIL_OFFLINE_LEARNER_H
5 #include <unordered_map>
12 class SimulatedGameNode;
14 class UniqueTreeDataset;
15 class ISimulatedGameUnit;
40 std::unique_ptr<UniqueTreeDataset>
GetSamplesDataset(
double minFractionOfSimulationsThreshold = 0.7);
52 double GetSampleMaxVisits()
const;
56 std::unique_ptr<IVectorizer> stateObserver;
57 std::unordered_map<const SimulatedGameNode*, std::vector<float>> capturedData = {};
64 #endif //GRAIL_OFFLINE_LEARNER_H
void FillSamplesDataset(UniqueTreeDataset &dataset, double minFractionOfSimulationsThreshold=0.7)
Gets data gathered by OfflineLearner and adds it to dataset. Pass the container you want to add data ...
Definition: OfflineLearner.cpp:48
This class should not be visible to developers at all.
Definition: SimulatedGameNode.h:23
Definition: UniqueTreeDataset.hh:18
OfflineLearner(std::unique_ptr< IVectorizer > vectorizer)
Constructs a new OfflineLearner object.
Definition: OfflineLearner.cpp:11
This is the main class you will use to peform the offline learning process. Assign it to the unit of ...
Definition: OfflineLearner.hh:21
A base class of a unit related to a rational/intelligent player. MCTS chooses actions for this kind o...
Definition: SimulatedGameThinkingUnit.hh:21
std::unique_ptr< UniqueTreeDataset > GetSamplesDataset(double minFractionOfSimulationsThreshold=0.7)
Gets data gathered by OfflineLearner in the form of UniqueTreeDataset.
Definition: OfflineLearner.cpp:40
void ClearData()
Clears all data gathered for the game. You may want to call it after you already use the data but you...
Definition: OfflineLearner.cpp:16
Base class of a unit in the SimulatedGame framework. A unit represents part of the game-state and pef...
Definition: ISimulatedGameUnit.hh:26