{"repo":"google-deepmind/envlogger","free":true,"listed":false,"github":"https://github.com/google-deepmind/envlogger","clone":"git clone https://github.com/google-deepmind/envlogger.git","description":"A tool for recording RL trajectories.","language":"Python","stars":132,"topics":["reinforcement-learning","logging"],"license":"Apache-2.0","category":"machine-learning","readme_excerpt":"EnvironmentLogger EnvLogger is a standard dm env.Environment class wrapper that records interactions between a real environment and an agent. These interactions are saved on disk as trajectories and can be retrieved in whole, by individual timesteps or by specific episodes. Metadata To better categorize your logged data, you may want to add some tags in the metadata when you construct the logger wrapper. The metadata is written once per EnvLogger instance. How to use Envlogger NOTE: Ensure that data directory exists before instantiating the wrapper. Most of the time, it is just a one-liner wrapper, e.g. Full example of random agent in Catch is available here: random agent catch.py Step metadata Envlogger also allows to record custom metadata per step by defining a function that can be passed to the wrapper. In this example, we want to record the timestamp of when each step was produced: Episode metadata Recording custom episode metadata is also possible by providing a callback. This callback is invoked at every step but only the last value returned that is not None (if any) is stored. In the following example, we only store the timestamp of the first step of the episode. Riegeli backend (Default & Recommended) By default, EnvLogger uses the RiegeliBackendWriter , which efficiently stores trajectories in compressed Riegeli format without requiring complex dataset schema definitions or heavy external dependencies. Recording human-generated data Please see [RLDS Creator] if you ","default_branch":null,"files":null,"tree":[],"storefront":"/r/google-deepmind","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/google-deepmind/envlogger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}