mirror of
https://github.com/gryf/coach.git
synced 2025-12-18 03:30:19 +01:00
Add is_on_policy property to agents (#480)
This commit is contained in:
@@ -130,6 +130,10 @@ class DDPGAgent(ActorCriticAgent):
|
||||
self.TD_targets_signal = self.register_signal("TD targets")
|
||||
self.action_signal = self.register_signal("actions")
|
||||
|
||||
@property
|
||||
def is_on_policy(self) -> bool:
|
||||
return False
|
||||
|
||||
def learn_from_batch(self, batch):
|
||||
actor = self.networks['actor']
|
||||
critic = self.networks['critic']
|
||||
|
||||
Reference in New Issue
Block a user