mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 11:10:20 +01:00
fix for finding the right filter checkpoint to restore + do not update internal filter state when evaluating + fix SharedRunningStats checkpoint filenames (#147)
This commit is contained in:
@@ -325,7 +325,7 @@ class ClippedPPOAgent(ActorCriticAgent):
|
||||
self.update_log()
|
||||
return None
|
||||
|
||||
def run_pre_network_filter_for_inference(self, state: StateType):
|
||||
def run_pre_network_filter_for_inference(self, state: StateType, update_internal_state: bool=False):
|
||||
dummy_env_response = EnvResponse(next_state=state, reward=0, game_over=False)
|
||||
return self.pre_network_filter.filter(dummy_env_response, update_internal_state=False)[0].next_state
|
||||
|
||||
|
||||
Reference in New Issue
Block a user