mirror of
https://github.com/gryf/coach.git
synced 2025-12-18 11:40:18 +01:00
Add is_on_policy property to agents (#480)
This commit is contained in:
@@ -67,6 +67,10 @@ class QuantileRegressionDQNAgent(ValueOptimizationAgent):
|
||||
super().__init__(agent_parameters, parent)
|
||||
self.quantile_probabilities = np.ones(self.ap.algorithm.atoms) / float(self.ap.algorithm.atoms)
|
||||
|
||||
@property
|
||||
def is_on_policy(self) -> bool:
|
||||
return False
|
||||
|
||||
def get_q_values(self, quantile_values):
|
||||
return np.dot(quantile_values, self.quantile_probabilities)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user