mobgap.stride_length.evaluation.sl_final_agg#

mobgap.stride_length.evaluation.sl_final_agg(
agg_results: dict[str, float],
single_results: dict[str, list],
_: SlEmulationPipeline,
dataset: BaseGaitDatasetWithReference,
) tuple[dict[str, any], dict[str, list[any]]][source]#

Aggregate the results of the stride length evaluation.

Warning

This function is not meant to be called directly, but as final_aggregator in a tpcp.validate.Scorer. If you are writing custom scoring functions, you can use this function as a template or wrap it in a new function.

This function aggregates the performance metrics as follows:

  • The raw stride and WB level values are combined into one dataframe each across the entire dataset.

  • All other values are passed through unchanged.