1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-18 03:30:19 +01:00
Files
coach/rl_coach/environments
shadiendrawis 8e812ef82f Coach as a library (#348)
* CoachInterface + tutorial

* Some improvements and typo fixes

* merge tutorial 0 and 4

* typo fix + additional tutorial changes

* tutorial changes

* added reading signals and experiment path argument
2019-06-19 18:05:03 +03:00
..
2018-08-13 17:11:34 +03:00
2018-08-13 17:11:34 +03:00
2018-08-13 17:11:34 +03:00
2019-06-19 18:05:03 +03:00
2018-08-13 17:11:34 +03:00

A custom environment implementation should look like this:

from coach.filters.input_filter import InputFilter

class CustomFilter(InputFilter):
  def __init__(self):
    ...
  def _filter(self, env_response: EnvResponse) -> EnvResponse:
    ...
  def _get_filtered_observation_space(self, input_observation_space: ObservationSpace) -> ObservationSpace:
    ...
  def _get_filtered_reward_space(self, input_reward_space: RewardSpace) -> RewardSpace:
    ...
  def _validate_input_observation_space(self, input_observation_space: ObservationSpace):
    ...
  def _reset(self):
    ...