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:
@@ -73,6 +73,10 @@ class NAFAgent(ValueOptimizationAgent):
|
||||
self.v_values = self.register_signal("V")
|
||||
self.TD_targets = self.register_signal("TD targets")
|
||||
|
||||
@property
|
||||
def is_on_policy(self) -> bool:
|
||||
return False
|
||||
|
||||
def learn_from_batch(self, batch):
|
||||
network_keys = self.ap.network_wrappers['main'].input_embedders_parameters.keys()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user