[feature request] custom transformation of observation space
See original GitHub issueHello,
I often need to manually transform the observation space shape and associated observations in order to match custom policies I’m using. Would it be interesting to add a pre-processing mechanism that would:
- customize the shape of the input. For now the shape is fixed like in (Box space): https://github.com/hill-a/stable-baselines/blob/a0b35d1f87046802baadbcbed59d3619a5f9bd92/stable_baselines/common/input.py#L25 I guess there are other places where this needs to be adapted
- transform the observation to fit in the desired shape. An example of that would be:
def transform(obs):
return np.reshape(obs, ...)
I guess there would be at least 2 options to expose a custom transformer: add it as a parameter to the algorithm, or register it (2nd option preferred I think).
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Featurization with automated machine learning - Azure ...
Learn the data featurization settings in Azure Machine Learning and how to customize those features for your automated ML experiments.
Read more >About the Feature Requests category - please read before ...
To make a feature request, start a new topic with the request as the topic's title. Please take a minute to search for...
Read more >Transform Data - Amazon SageMaker - AWS Documentation
Custom transform doesn't support columns with spaces or special characters ... Many analyses, such as forecasting algorithms, require the observations to be ...
Read more >Semantic Sensor Network Ontology - W3C
The main feature of an ontology module under the second category is ... require the use of some custom datatype whose value space...
Read more >LiveData overview - Android Developers
The following sample code illustrates how to start observing a LiveData object: ... Even though you can use LiveData transformations and ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hill-a thanks. I was about to write my own 😃
I’m not sure I understand what you mean.
If you want to change the observation shape from the environment, you can use a custom environment wrapper that can transform your observation before it is used by the model.
If you want to change the way the batch shapes are handled, I wouldn’t mind an example, as I’m not sure how this could be used.
Or do you mean something else?