What is the difference between cleanstates and cleaninnerstates in the file…
- User
What is the difference between clean_states and clean_inner_states in the file demo_extractor_maze?
Assistant
clean_statesandclean_inner_statesare both lists generated by theclean_demonstration_trajectorymethod in theDemoExtractorclass, and they are closely related but serve slightly different purposes:-
clean_states: This list contains the cleaned full state observations extracted from the demonstration. These states are used for training and evaluation of the agent within the environment. They are obtained by sampling the original demonstration trajectory based on theeps_statethreshold. This threshold determines how much the state can change before a new state is added to this list and defines sub-trajectories from the demonstration. -
clean_inner_states: This list contains the corresponding inner states, which are also extracted from the demonstration. In the context of the provided code, for the Maze environment,clean_inner_statesis identical toclean_statesbecause the state is simply the raw observation from the environment. However, in other environments (e.g. Mujoco) the inner state would be a different format used for simulation resets (e.g., a MjSimData object).
In essence, both lists are created based on the same logic of segmenting the original demonstration trajectory, but
clean_statesrepresents full state observations, whileclean_inner_statesrepresents states that can be used for resetting the environment.-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.