[RLlib] Trajectory View API (part 2.5): Actual implementations (not used yet) of a SampleCollector. (#10112)

This commit is contained in:
Sven Mika
2020-08-15 15:09:00 +02:00
committed by GitHub
parent 2256047876
commit aeb5be7733
9 changed files with 854 additions and 165 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ class SampleBatchBuilder:
self.count = 0
@PublicAPI
def add_values(self, **values: Dict[str, Any]) -> None:
def add_values(self, **values: Any) -> None:
"""Add the given dictionary (row) of values to this batch."""
for k, v in values.items():
@@ -138,7 +138,7 @@ class MultiAgentSampleBatchBuilder:
@DeveloperAPI
def add_values(self, agent_id: AgentID, policy_id: AgentID,
**values: Dict[str, Any]) -> None:
**values: Any) -> None:
"""Add the given dictionary (row) of values to this batch.
Arguments: