Module: tf_agents.metrics.tf_metrics
Stay organized with collections
Save and categorize content based on your preferences.
TF metrics.
Classes
class AverageEpisodeLengthMetric
: Metric to compute the average episode length.
class AverageReturnMetric
: Metric to compute the average return.
class AverageReturnMultiMetric
: Metric to compute the average return for multiple metrics.
class ChosenActionHistogram
: Metric to compute the frequency of each action chosen.
class EnvironmentSteps
: Counts the number of steps taken in the environment.
class MaxReturnMetric
: Metric to compute the max return.
class MinReturnMetric
: Metric to compute the min return.
class NumberOfEpisodes
: Counts the number of episodes in the environment.
class TFDeque
: Deque backed by tf.Variable storage.
Functions
log_metrics(...)
Other Members |
absolute_import
|
Instance of __future__._Feature
|
division
|
Instance of __future__._Feature
|
print_function
|
Instance of __future__._Feature
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-26 UTC.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# Module: tf_agents.metrics.tf_metrics\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/metrics/tf_metrics.py) |\n\nTF metrics.\n\nClasses\n-------\n\n[`class AverageEpisodeLengthMetric`](../../tf_agents/metrics/tf_metrics/AverageEpisodeLengthMetric): Metric to compute the average episode length.\n\n[`class AverageReturnMetric`](../../tf_agents/metrics/tf_metrics/AverageReturnMetric): Metric to compute the average return.\n\n[`class AverageReturnMultiMetric`](../../tf_agents/metrics/tf_metrics/AverageReturnMultiMetric): Metric to compute the average return for multiple metrics.\n\n[`class ChosenActionHistogram`](../../tf_agents/metrics/tf_metrics/ChosenActionHistogram): Metric to compute the frequency of each action chosen.\n\n[`class EnvironmentSteps`](../../tf_agents/metrics/tf_metrics/EnvironmentSteps): Counts the number of steps taken in the environment.\n\n[`class MaxReturnMetric`](../../tf_agents/metrics/tf_metrics/MaxReturnMetric): Metric to compute the max return.\n\n[`class MinReturnMetric`](../../tf_agents/metrics/tf_metrics/MinReturnMetric): Metric to compute the min return.\n\n[`class NumberOfEpisodes`](../../tf_agents/metrics/tf_metrics/NumberOfEpisodes): Counts the number of episodes in the environment.\n\n[`class TFDeque`](../../tf_agents/metrics/tf_metrics/TFDeque): Deque backed by tf.Variable storage.\n\nFunctions\n---------\n\n[`log_metrics(...)`](../../tf_agents/metrics/tf_metrics/log_metrics)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Other Members ------------- ||\n|-----------------|-----------------------------------|\n| absolute_import | Instance of `__future__._Feature` |\n| division | Instance of `__future__._Feature` |\n| print_function | Instance of `__future__._Feature` |\n\n\u003cbr /\u003e"]]