(C++)  1.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::simulation::UniqueTreeDataset Class Reference

Public Member Functions

void Add (std::unique_ptr< TreeDataSample > sample)
 Adds a new sample.
 
void Add (std::vector< float > &data, const ISimulatedGameAction *action)
 Adds a new sample.
 
std::unique_ptr< DatasetConvertToDataset (const std::initializer_list< DTConsiderationType > &considerationTypes)
 Converts to a flat dataset - with the chosen decision - that is suitable for constructing the DecisionTree.
 
std::unique_ptr< DatasetConvertToDataset (const std::vector< DTConsiderationType > &considerationTypes)
 Converts to a flat dataset - with the chosen decision - that is suitable for constructing the DecisionTree.
 
std::unique_ptr< DatasetConvertToDataset (DTConsiderationType considerationType, int count)
 

Member Function Documentation

std::unique_ptr< Dataset > grail::simulation::UniqueTreeDataset::ConvertToDataset ( DTConsiderationType  considerationType,
int  count 
)

Converts to a flat dataset - with the chosen decision - that is suitable for constructing the DecisionTree. Use this variant of the method if all considerations have the same type.


The documentation for this class was generated from the following files: