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

Structure for storing results in UniqueTreeDataset. More...

Inheritance diagram for Grail.SimulatedGames.OfflineLearning.TreeDataSample:
Collaboration diagram for Grail.SimulatedGames.OfflineLearning.TreeDataSample:

Public Member Functions

 TreeDataSample (IEnumerable< float > data)
 Constructs a new TreeDataSample object More...
 
 TreeDataSample (params float[] data)
 Constructs a new TreeDataSample object More...
 
DatasetSample< ISimulatedGameActionReduce ()
 This method chooses the best decision for the sampled data and returns it with data as DatasetSample. In the returned sample, statistics about decisions are discarded. More...
 
void AddDecision (ISimulatedGameAction decision)
 Adds occurence of a decision to the sample. More...
 
override string ToString ()
 
bool Equals (TreeDataSample other)
 
override int GetHashCode ()
 

Properties

float [] Data [get]
 

Detailed Description

Structure for storing results in UniqueTreeDataset.

Constructor & Destructor Documentation

◆ TreeDataSample() [1/2]

Grail.SimulatedGames.OfflineLearning.TreeDataSample.TreeDataSample ( IEnumerable< float >  data)
inline

Constructs a new TreeDataSample object

Parameters
dataValues of considerations (conditions) that have been sampled.

◆ TreeDataSample() [2/2]

Grail.SimulatedGames.OfflineLearning.TreeDataSample.TreeDataSample ( params float []  data)
inline

Constructs a new TreeDataSample object

Parameters
dataValues of considerations (conditions) that have been sampled.

Member Function Documentation

◆ AddDecision()

void Grail.SimulatedGames.OfflineLearning.TreeDataSample.AddDecision ( ISimulatedGameAction  decision)
inline

Adds occurence of a decision to the sample.

Parameters
decision

◆ Reduce()

DatasetSample<ISimulatedGameAction> Grail.SimulatedGames.OfflineLearning.TreeDataSample.Reduce ( )
inline

This method chooses the best decision for the sampled data and returns it with data as DatasetSample. In the returned sample, statistics about decisions are discarded.

Returns
Sample converted to DatasetSample (without full statistics of actions).

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