mobgap.gait_sequences.evaluation.gsd_evaluation_scorer#
- mobgap.gait_sequences.evaluation.gsd_evaluation_scorer(
- pipeline: GsdEmulationPipeline,
- datapoint: BaseGaitDatasetWithReference,
Evaluate the performance of a GSD algorithm on a single datapoint.
This function is used to evaluate the performance of a GSD algorithm on a single datapoint. It calculates the performance metrics based on the detected gait sequences and the reference gait sequences.
This is the default scoring functions for the GSD evaluation pipelines (
GsdEvaluationandGsdEvaluationCV).- Parameters:
- pipeline
An instance of GSD emulation pipeline that wraps the algorithm that should be evaluated.
- datapoint
The datapoint to be evaluated.
- Returns:
- dict
A dictionary containing the performance metrics. Note, that some results are wrapped in a
NoAggobject or other aggregators. The results of this function are not expected to be parsed manually, but rather the function is expected to be used in the context of thevalidate/cross_validatefunctions or similar as scorer. This functions will aggregate the results and provide a summary of the performance metrics.