Grail (C++)
1.3.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
This class represents action defined in the SimulatedGames module with additional statistics (score, visits). More...
#include <SimulatedGameActionMetadata.hh>
Public Member Functions | |
SimulatedGameActionMetadata (double score, int visits, const ISimulatedGameAction *action) | |
Constructs a new SimulatedGameActionMetadata object. More... | |
std::string | ToString () const |
Public Attributes | |
double | Score = 0 |
The average score of performing this action from the perspective of the unit that performed it. More... | |
int | Visits = 0 |
The number of times the action has been tested by the MCTS algorithm. The @Score value is an average value computed after taking the number of samples equal to @Visits. More... | |
const ISimulatedGameAction * | Action = nullptr |
The action. | |
This class represents action defined in the SimulatedGames module with additional statistics (score, visits).
grail::simgames::SimulatedGameActionMetadata::SimulatedGameActionMetadata | ( | double | score, |
int | visits, | ||
const ISimulatedGameAction * | action | ||
) |
Constructs a new SimulatedGameActionMetadata object.
score | the average score (quality) |
visits | the number of times the action has been tested |
action |
double grail::simgames::SimulatedGameActionMetadata::Score = 0 |
The average score of performing this action from the perspective of the unit that performed it.
int grail::simgames::SimulatedGameActionMetadata::Visits = 0 |
The number of times the action has been tested by the MCTS algorithm. The @Score value is an average value computed after taking the number of samples equal to @Visits.