SmartEngine  1.6.0
Public Member Functions | Public Attributes | List of all members
SmartEngine.Helpers.ChromosomeData Class Referenceabstract

Data stored for a particular chromosome. More...

Public Member Functions

virtual void Reset (int index)
 Called at the beginning of training to reset all data to the initial state More...
 
abstract void MergeData (ChromosomeData data)
 Merges data from the client onto the server data. Typical implementations simply add the stats. More...
 
abstract float ComputeLoss ()
 Should return the calculated loss of this chromosome. Lower loss is always better, so in the case of computing a score where a higher value is better, simply negate the score value. More...
 
virtual void Serialize (MemoryBuffer writer)
 Serialize the structure More...
 
virtual void Deserialize (MemoryBuffer reader)
 Deserialize the structure More...
 

Public Attributes

int ChromosomeIndex
 Index of this chromosome More...
 

Detailed Description

Data stored for a particular chromosome.

Member Function Documentation

◆ ComputeLoss()

abstract float SmartEngine.Helpers.ChromosomeData.ComputeLoss ( )
pure virtual

Should return the calculated loss of this chromosome. Lower loss is always better, so in the case of computing a score where a higher value is better, simply negate the score value.

Returns

◆ Deserialize()

virtual void SmartEngine.Helpers.ChromosomeData.Deserialize ( MemoryBuffer  reader)
virtual

Deserialize the structure

Parameters
reader

◆ MergeData()

abstract void SmartEngine.Helpers.ChromosomeData.MergeData ( ChromosomeData  data)
pure virtual

Merges data from the client onto the server data. Typical implementations simply add the stats.

Parameters
data

◆ Reset()

virtual void SmartEngine.Helpers.ChromosomeData.Reset ( int  index)
virtual

Called at the beginning of training to reset all data to the initial state

Parameters
index

◆ Serialize()

virtual void SmartEngine.Helpers.ChromosomeData.Serialize ( MemoryBuffer  writer)
virtual

Serialize the structure

Parameters
writer

Member Data Documentation

◆ ChromosomeIndex

int SmartEngine.Helpers.ChromosomeData.ChromosomeIndex

Index of this chromosome