final_scorer#
- gaitmap_challenges.stride_segmentation.egait_segmentation_validation_2014.final_scorer(pipeline: Pipeline, datapoint: EgaitSegmentationValidation2014, tolerance_s: float = 0.03, use_original_labels: bool = False)[source]#
Score a pipeline build for segmentation challenges of the Egait Segmentation Validation 2014 dataset.
It compares the reference stride list (either the original or the new one) with the stride list returned by the pipeline via the
stride_list_attribute.It calculates the precision, recall and f1 score for the stride segmentation.
- Parameters:
- pipeline
The pipeline to score. The pipeline needs to have a
stride_list_attribute that contains the segmented stride list after running.- datapoint
The datapoint of the EgaitSegmentationValidation2014 dataset.
- tolerance_s
The tolerance in seconds that is allowed between the calculated stride borders and the reference stride borders. Both, start and end labels need to be within the tolerance to be considered a match.
- use_original_labels
If True, the original stride labels are used for the reference stride list. The original labels only contain straight strides. If False, the new labels are used for the reference stride list. The new labels contain all strides including turns and stairs.