so I wonder is there existing API or method to use HER in ray?
To the best of my knowledge, RLlib offers no functionality that does what HER does. @avnishn might know better, since he has been around longer.
If no, how can I insert my customized HER into algorithms?
HER is not an algorithm like for example DQN or DDPG are and therefore should, imho, not be part of what you can find under RLlib’s algorithms section if that is what you where thinking of.
Rather, as @avnishn suggested, this should live in the new Replay Buffer API.
HER is not yet in the scope of this API - would you be willing to contribute?
Otherwise you will have to wait some time until it makes it into RLlib I think.
Hi, @arturn
A huge thank you that you can offer this information,
and sorry I missed this message for a long time until now.
I think I am willing to contribute to this if I have the chance,
but I know poorly in how Replay Buffer API works in the whole framework.
So I think I need to look through source code more in details about this part.
If you can provide some introductions that will be best.
Hi, no problem. Have a look at ray/rllib/utils/replay_buffers at master · ray-project/ray · GitHub (edited). That’s where the new API lives. It’s not yet in a release build, so you will have to work with nightly build here and install them manually Let us know if you make progress on this!