C# Class Unity.MLAgents.SideChannels.StatsSideChannel

A Side Channel for sending StatsRecorder data.
Inheritance: Unity.MLAgents.SideChannels.SideChannel
Afficher le fichier Open project: Hsgngr/Pandemic_Simulation

Méthodes publiques

Méthode Description
AddStat ( string key, float value, StatAggregationMethod aggregationMethod ) : void

Add a stat value for reporting.

Méthodes protégées

Méthode Description
OnMessageReceived ( Unity.MLAgents.SideChannels.IncomingMessage msg ) : void

Private Methods

Méthode Description
StatsSideChannel ( ) : System

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

Method Details

AddStat() public méthode

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.
Résultat void

OnMessageReceived() protected méthode

protected OnMessageReceived ( Unity.MLAgents.SideChannels.IncomingMessage msg ) : void
msg Unity.MLAgents.SideChannels.IncomingMessage
Résultat void