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

Represents elements stored in DataSet. They consist of a vector of consideration values and decision made under those considerations. More...

Inheritance diagram for Grail.SimulatedGames.OfflineLearning.DatasetSample< TDecisionType >:
Collaboration diagram for Grail.SimulatedGames.OfflineLearning.DatasetSample< TDecisionType >:

Public Member Functions

 DatasetSample (ValueTuple< string, string > serializedStringList, IDecisionStringSerializer< TDecisionType > decisionSerializer)
 Constructs sample from a serialized form. More...
 
 DatasetSample (IEnumerable< float > data)
 Constructs sample with provided consideration values. You need to assign decision later. More...
 
 DatasetSample (params float[] data)
 Constructs sample with provided consideration values. You need to assign decision later. More...
 
 DatasetSample (TDecisionType decision, params float[] data)
 Constructs sample with provided consideration values and decision. More...
 
override string ToString ()
 
bool Equals (TreeDataSample other)
 
override int GetHashCode ()
 

Public Attributes

 string
 

Properties

float [] Data [get, set]
 Values measured for considerations. More...
 
TDecisionType Decision [get, set]
 The decision made under valued measured for considerations and stored in Data. More...
 

Detailed Description

Represents elements stored in DataSet. They consist of a vector of consideration values and decision made under those considerations.

Constructor & Destructor Documentation

◆ DatasetSample() [1/4]

Grail.SimulatedGames.OfflineLearning.DatasetSample< TDecisionType >.DatasetSample ( ValueTuple< string, string >  serializedStringList,
IDecisionStringSerializer< TDecisionType >  decisionSerializer 
)
inline

Constructs sample from a serialized form.

Parameters
serializedStringList
decisionSerializer

◆ DatasetSample() [2/4]

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

Constructs sample with provided consideration values. You need to assign decision later.

Parameters
data

◆ DatasetSample() [3/4]

Grail.SimulatedGames.OfflineLearning.DatasetSample< TDecisionType >.DatasetSample ( params float []  data)
inline

Constructs sample with provided consideration values. You need to assign decision later.

Parameters
data

◆ DatasetSample() [4/4]

Grail.SimulatedGames.OfflineLearning.DatasetSample< TDecisionType >.DatasetSample ( TDecisionType  decision,
params float []  data 
)
inline

Constructs sample with provided consideration values and decision.

Parameters
data

Property Documentation

◆ Data

float [] Grail.SimulatedGames.OfflineLearning.DatasetSample< TDecisionType >.Data
getset

Values measured for considerations.

◆ Decision

TDecisionType Grail.SimulatedGames.OfflineLearning.DatasetSample< TDecisionType >.Decision
getset

The decision made under valued measured for considerations and stored in Data.


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