revalidation_table_styles#
- mobgap.utils.tables.revalidation_table_styles( ) Styler[source]#
Apply styles to a DataFrame appropriate for the revalidation.
To use this, set up a dictionary with the column names as keys and the comparison information as values. then you can run
df.style.pipe(revalidation_table_styles, thresholds, groupby=<groupby>)to apply the styles.This applies
best_in_group_styler,compare_to_threshold_styler, andborder_after_group_stylerwith the default styles.- Parameters:
- st
The Styler object to apply the styles to.
- thresholds
A dictionary with the column names as keys and the comparison information as values.
- groupby
A valid groupby argument for
groupby. This is used bybest_in_group_stylerandborder_after_group_styler.
Examples using mobgap.utils.tables.revalidation_table_styles#
Performance of the gait sequences algorithm on the TVS dataset
Performance of the initial contact algorithms on the TVS dataset
Performance of the laterality classification algorithms on the TVS dataset
Performance of the cadence algorithms on the TVS dataset
Performance of the stride length algorithms on the TVS dataset