1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-17 19:20:19 +01:00

multiple bug fixes in dealing with measurements + CartPole_DFP preset (#92)

This commit is contained in:
Itai Caspi
2018-04-23 10:44:46 +03:00
committed by GitHub
parent 5d5562bf62
commit 52eb159f69
5 changed files with 31 additions and 9 deletions

View File

@@ -135,7 +135,7 @@ class DoomEnvironmentWrapper(EnvironmentWrapper):
# extract all data from the current state
state = self.game.get_state()
if state is not None and state.screen_buffer is not None:
self.observation = {
self.state = {
'observation': state.screen_buffer,
'measurements': state.game_variables,
}