Class StatsRecorder | ML Agents | 1.7.2-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class StatsRecorder

    Add stats (key-value pairs) for reporting. These values will sent these to a StatsReporter instance, which means the values will appear in the TensorBoard summary, as well as trainer gauges. You can nest stats in TensorBoard by adding "/" in the name (e.g. "Agent/Health" and "Agent/Wallet"). Note that stats are only written to TensorBoard each summary_frequency steps (a trainer configuration). If a stat is received multiple times, within that period then the values will be aggregated using the StatAggregationMethod provided.

    Inheritance
    Object
    StatsRecorder
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.MLAgents
    Syntax
    public sealed class StatsRecorder

    Methods

    Add(String, Single, StatAggregationMethod)

    Add a stat value for reporting.

    Declaration
    public void Add(string key, float value, StatAggregationMethod aggregationMethod = StatAggregationMethod.Average)
    Parameters
    Type Name Description
    String key

    The stat name.

    Single value

    The stat value. You can nest stats in TensorBoard by using "/".

    StatAggregationMethod aggregationMethod

    How multiple values sent in the same summary window should be treated.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023