mirror of
https://github.com/gryf/coach.git
synced 2025-12-19 04:00:18 +01:00
remove redundant observe ignore (#168)
This commit is contained in:
committed by
Balaji Subramaniam
parent
a048024bf5
commit
bf0a65eefd
@@ -977,13 +977,6 @@ class Agent(AgentInterface):
|
|||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# if we are in the first step in the episode, then we don't have a a next state and a reward and thus no
|
|
||||||
# transition yet, and therefore we don't need to store anything in the memory.
|
|
||||||
# also we did not reach the goal yet.
|
|
||||||
if self.current_episode_steps_counter == 0:
|
|
||||||
# initialize the current state
|
|
||||||
return transition.game_over
|
|
||||||
else:
|
|
||||||
# sum up the total shaped reward
|
# sum up the total shaped reward
|
||||||
self.total_shaped_reward_in_current_episode += transition.reward
|
self.total_shaped_reward_in_current_episode += transition.reward
|
||||||
self.total_reward_in_current_episode += transition.reward
|
self.total_reward_in_current_episode += transition.reward
|
||||||
|
|||||||
Reference in New Issue
Block a user