Grail (C++)  1.2.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::simgames::learn::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< dt::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< dt::DTConsiderationType > &considerationTypes)
 Converts to a flat dataset - with the chosen decision - that is suitable for constructing the DecisionTree.
 
std::unique_ptr< DatasetConvertToDataset (dt::DTConsiderationType considerationType, int count)
 

Member Function Documentation

◆ ConvertToDataset()

std::unique_ptr< Dataset > grail::simgames::learn::UniqueTreeDataset::ConvertToDataset ( dt::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: