[RLlib] TrajectoryView positive shifts doesn't work
See original GitHub issueHello, I am trying to access the next action during training. I updated the requirement with
"next_actions": ViewRequirement( SampleBatch.ACTIONS, shift=1, used_for_training=True)
However it doesn’t work because, when building the batch, data gets an empty list (see line 141)
I think that line 141 should be changed to
data = np_data[data_col][self.shift_before + shift:] + padding
@sven1977 could you take a look ? Thanks !
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Sample Collections and Trajectory Views — Ray 2.2.0
The trajectory view API lets models define these requirements and lets RLlib gather the required data for the forward pass in an efficient...
Read more >Potential bug in trajectory view API for multiagent envs - Ray
Does the trajectory view API support multiagent environments? I'm currently hitting the following internal error from trainer.train():
Read more >Examples — Ray 2.2.0
This blog describes RLlib's new “trajectory view API” and how it enables implementations of GTrXL (attention net) architectures.
Read more >How To Customize Policies — Ray 2.2.0
To simplify the definition of policies, RLlib includes Tensorflow and ... The above basic policy, when run, will produce batches of observations with...
Read more >RLlib: Industry-Grade Reinforcement Learning — Ray 2.2.0
RLlib is an open-source library for reinforcement learning (RL), offering support for ... RLlib does not automatically install a deep-learning framework, ...
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 Free
Top 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

Hey @raphaelavalos , thanks for filing this issue! Great stuff that users are already trying to do cool (and completely unexpected 😄 ) things with the API. Taking a look right now. …
Thank you @sven1977 !