Skip to content

How to create a MixedMemory class that combines preloaded and new experiences in skrl? #203

Closed Answered by Toni-SM
Ginga-Kennis asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Ginga-Kennis

This is a good feature that, if I have time I am going to include in next release... Or you can just open a new PR with the implementation 😅

Meanwhile, the solution is to play with the memory_index property of the Memory base class and define the default value the memory index will be assigned (currently 0, which means start overwriting from the beginning) when maximum capacity has been reached

https://github.com/Toni-SM/skrl/blob/main/skrl%2Fmemories%2Ftorch%2Fbase.py#L305

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Toni-SM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants