Grail (C#)  1.2.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
Grail.SimulatedGames.OfflineLearning.UniqueTreeDataset Class Reference

A class that stores samples, which are values for given considerations (conditions in decision tree) together with statistics of decisions performed under those considerations. When the learning process is stopped, then you can convert this object to a flat Dataset, that picks the most frequently chosen decision for each sample. More...

Public Member Functions

void Add (TreeDataSample element)
 Adds a new sample More...
 
Dataset< ISimulatedGameActionConvertToDataset (params DecisionConsiderationType[] considerationTypes)
 Converts to a flat dataset - with the chosen decision - that is suitable for constructing the DecisionTree. More...
 
Dataset< ISimulatedGameActionConvertToDataset (DecisionConsiderationType 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. More...
 

Detailed Description

A class that stores samples, which are values for given considerations (conditions in decision tree) together with statistics of decisions performed under those considerations. When the learning process is stopped, then you can convert this object to a flat Dataset, that picks the most frequently chosen decision for each sample.

Member Function Documentation

◆ Add()

void Grail.SimulatedGames.OfflineLearning.UniqueTreeDataset.Add ( TreeDataSample  element)
inline

Adds a new sample

Parameters
element

◆ ConvertToDataset() [1/2]

Dataset<ISimulatedGameAction> Grail.SimulatedGames.OfflineLearning.UniqueTreeDataset.ConvertToDataset ( params DecisionConsiderationType []  considerationTypes)
inline

Converts to a flat dataset - with the chosen decision - that is suitable for constructing the DecisionTree.

Parameters
considerationTypesPass types for each consideration.
Returns

◆ ConvertToDataset() [2/2]

Dataset<ISimulatedGameAction> Grail.SimulatedGames.OfflineLearning.UniqueTreeDataset.ConvertToDataset ( DecisionConsiderationType  considerationType,
int  count 
)
inline

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.

Parameters
considerationTypeType of each consideration
countThe number of considerations
Returns

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