mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 11:10:20 +01:00
Add is_on_policy property to agents (#480)
This commit is contained in:
@@ -144,6 +144,10 @@ class ClippedPPOAgent(ActorCriticAgent):
|
||||
self.likelihood_ratio = self.register_signal('Likelihood Ratio')
|
||||
self.clipped_likelihood_ratio = self.register_signal('Clipped Likelihood Ratio')
|
||||
|
||||
@property
|
||||
def is_on_policy(self) -> bool:
|
||||
return True
|
||||
|
||||
def set_session(self, sess):
|
||||
super().set_session(sess)
|
||||
if self.ap.algorithm.normalization_stats is not None:
|
||||
|
||||
Reference in New Issue
Block a user