Event System, Logging & Statistics¶
This page contains the reference documentation for the event and logging system.
Overview
Event System¶
These are interfaces, classes and utility functions of the event system:
Event aggregation object. |
|
Implementation of a message broker (Pubsub stands for publish and subscribe). |
|
Constructs a proxy instance of the event interface, as required by EventService and LogStatsAggregator. |
|
Base class for all services that integrate with the event system and therefore use EventService as their backend. |
|
Manages the recording of event invocations and provides simple event routing functionality. |
|
A collection of EventRecord instances that can be queried by event specification. |
|
This auxiliary class is used to record calls to the event interface |
Event Logging¶
These are the components of the event system:
Logs all events dispatched by the environment during one step. |
|
Keeps logs of all events dispatched by an environment during one episode. |
|
Interface for calculating KPI metrics. |
|
Handles registration of event log writers. |
|
Interface for modules writing out the event log data. |
|
Writes event logs into TSV files. |
|
Represents one row into the output file for the |
|
Simple setup for logging of environment events with all their attributes. |
|
Event topic class with logging statistics based only on observations, therefore applicable to any valid reinforcement learning environment. |
|
Event topic class with logging statistics based only on Gym space actions, therefore applicable to any valid reinforcement learning environment. |
|
Event topic class with logging statistics based only on rewards, therefore applicable to any valid reinforcement learning environment. |
|
Checks the type of value and calls the correct plotting function accordingly. |
|
Creates simple matplotlib histogram of value. |
|
Counts the categories in value and prepares a relative bar plot of these. |
|
Creates simple matplotlib violin plot of value. |
Statistics Logging¶
These are the components of the statistics logging system:
Interface to access logging statistics generated by the environment. |
|
Log statistics writer implementation for the console, mainly for debugging purposes. |
|
Log statistics writer implementation for Tensorboard. |
|
Log statistics aggregation levels. |
|
An interface to receive log statistics. |
|
Complements the event system by providing aggregation functionality. |
|
A minimal interface concrete log statistics writers must implement. |
|
Internal class that encapsulates the global state of the logging system. |
|
Auxiliary class returned by get_stats_logger. |
|
Set the concrete writer implementation that will receive all successive statistics logging. |
|
Helper function. |
|
Notifies the logging system that the current step is finished. |
|
Creates an object that can be used to pipe LogStatAggregator instances with the logging writers. |
|
Event method decorator, defines a new step statistics calculation for this event. |
|
Event method decorator, defines a new episode statistics calculation for this event. |
|
Event method decorator, defines a new epoch statistics calculation for this event. |
|
Event method decorator, defines a grouping of all calculated statistics by an attribute. |
|
Event method decorator, defines a plot. |
|
the histogram reducer function |
|
Basic data structure for log statistics |
|
Basic data structure for log statistics |
|
Basic data structure for log statistics |
|
Basic data structure for log statistics |