autonomy.analyse.benchmark.aggregate
Tools for aggregating benchmark results.
BlockTypes Objects
class BlockTypes()
Block types.
read_
benchmark_
data
def read_benchmark_data(path: Path,
block_type: str = BlockTypes.ALL,
period: int = -1) -> Dict[str, Dict[str, List[Dict]]]
Returns logs.
add_
statistic
def add_statistic(name: str, aggregator: Callable, behaviours: List[str],
behaviour_history: Dict[str, List[float]]) -> str
Add a stastic column.
add_
statistics
def add_statistics(behaviours: List[str],
behaviour_history: Dict[str, List[float]]) -> str
Add statistics.
create_
table_
data
def create_table_data(
data: Dict[str, List[Dict]],
blocks: Tuple[str,
...]) -> Tuple[List[str], List[str], Dict[str, Dict]]
Create table data.
create_
agent_
table
def create_agent_table(agent: str, data: Dict[str, List[Dict]],
blocks: Tuple[str, ...]) -> str
Create agent table.
aggregate
def aggregate(path: Path, block_type: str, period: int, output: Path) -> None
Benchmark Aggregator.