Skip to content

A thinking of observation window #92

Answered by tsampazk
speedhawk asked this question in Q&A
Discussion options

You must be logged in to vote

The link points to a docstring, i.e. some comments regarding the topic of discussion, so feel free to read it before delving into understanding the code which is a bit convoluted to be honest.

Well a new observation is created and passed to the agent for every timestep so if the controller timestep is set to 32, this is done every 32ms. So every 32 ms, for step_window=2 you get the current values and the values from 32 ms ago (i.e. the previous current values) and if, in addition, you have set the seconds_window=1, you would get values from a around a second ago, which means around ~32 steps ago, as 32ms * 32 steps = 1024 ms (this is why i do int(np.ceil(1000 / self.timestep) in the memor…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@speedhawk
Comment options

@tsampazk
Comment options

Answer selected by speedhawk
@tsampazk
Comment options

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
Converted from issue

This discussion was converted from issue #91 on April 14, 2023 20:20.