[WIP] AveragingEpisodesController#89
Open
maotto wants to merge 3 commits into
Open
Conversation
…ments and return the median of the returns; TODO: implement this nicely in a controller subclass
* does not support recording of trajectories and raw reward histories * allows to accumulate and average reward histories by function that is passed via feedback_averaging_function * allows to prepare an environment for each repetition (e.g. seeding) to make results repeatable
| See base class "Controller" for details on usage. | ||
|
|
||
| Additional Parameters | ||
| ---------- |
|
|
||
| Additional Parameters | ||
| ---------- | ||
| num_repetitions_to_average : int, optional (default: 10) |
Contributor
There was a problem hiding this comment.
we usually try to use n_ as an abbreviation for number.
| if the environment is stochastic or specifically prepared via the | ||
| argument environment_preparation_function | ||
|
|
||
| feedback_averaging_function : function, optional (default: median_of_sums) |
Contributor
There was a problem hiding this comment.
It is a callback, not just a function. It also does not have to be a function, it can be any callable.
| Note that the number of feedbacks per rollout may vary. | ||
| See AveragingEpisodesController.median_of_sums (default) for an example | ||
|
|
||
| environment_preparation_function : function, optional (default: None) |
Contributor
There was a problem hiding this comment.
same applies here
| self.record_inputs = False | ||
| self.record_outputs = False | ||
| self.record_feedbacks = False | ||
| self.accumulate_feedbacks = False # see feedback_averaging_function |
Contributor
There was a problem hiding this comment.
this comment does not really help
Contributor
|
@maotto any progress? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
added an AveragingEpisodesController