Skip to content

Commit

Permalink
fixed unpicklable bug in k step shaper (#87)
Browse files Browse the repository at this point in the history
Co-authored-by: ysqyang <v-yangqi@microsoft.com>
  • Loading branch information
ysqyang and ysqyang authored Sep 24, 2020
1 parent bad607e commit a553cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maro/rl/shaping/k_step_experience_shaper.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ def __call__(self, trajectory, snapshot_list):
agent_exp[KStepExperienceKeys.NEXT_ACTION.value].appendleft(next_transition["action"])
agent_exp[KStepExperienceKeys.DISCOUNT.value].appendleft(self._reward_decay ** (min(self._steps, len(trajectory)-1-i)))

return experiences
return dict(experiences)

0 comments on commit a553cd3

Please sign in to comment.