C3_W3_A1_Assignment: Deleting experiences from the memory_buffer

I do not see any mechanism for deleting experiences from the memory_buffer , which is implemented as a double-ended queue, in either the lab assignment or the utils module. Could you clarify when entries should be removed from the buffer? Do we have a specific strategy for managing its size or retention policy?

Hello, @abhilash341,

As you have probably seen, we use a deque object imported from Python’s collections as our memory_buffer. Therefore, when we come to a question about that, it is natural that we search for its documentation and it happens to have explained your question:

In other words, the removal is managed by deque itself.

Cheers,
Raymond

Sorry, I am from the Java background and assumed that we have to delete the entries from the Dequeue in python similar to Java. Thanks for the clarification.

1 Like

No problem, @abhilash341. :wink: