C# Class Unity.MLAgents.SideChannels.StatsSideChannel

A Side Channel for sending StatsRecorder data.
Inheritance: Unity.MLAgents.SideChannels.SideChannel
ファイルを表示 Open project: Hsgngr/Pandemic_Simulation

Public Methods

Method Description
AddStat ( string key, float value, StatAggregationMethod aggregationMethod ) : void

Add a stat value for reporting.

Protected Methods

Method Description
OnMessageReceived ( Unity.MLAgents.SideChannels.IncomingMessage msg ) : void

Private Methods

Method Description
StatsSideChannel ( ) : System

Initializes the side channel. The constructor is internal because only one instance is supported at a time.

Method Details

AddStat() public method

Add a stat value for reporting.
public AddStat ( string key, float value, StatAggregationMethod aggregationMethod ) : void
key string The stat name.
value float The stat value.
aggregationMethod StatAggregationMethod How multiple values should be treated.
return void

OnMessageReceived() protected method

protected OnMessageReceived ( Unity.MLAgents.SideChannels.IncomingMessage msg ) : void
msg Unity.MLAgents.SideChannels.IncomingMessage
return void