Skip to content

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.