Skip to content

[Feature Request] Use ObservationNorm.init_stats for stats computation in example scripts #699

@vmoens

Description

@vmoens

Motivation

We currently use a custom function get_stats_random_rollout for stats computation in the examples.
We should use ObservationNorm.init_stats instead.

We have 2 options:

  • Rewrite get_stats_random_rollout from within to just call the transform method
  • Replace every call to get_stats_random_rollout() by a call to ObservationNorm.init_stats.

The first solution may be more readable but adds one level of coding that the second does not have, and perhaps has little advantages except for conciseness of the training script.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions