correct_changepoints#
- ethograph.features.changepoints.correct_changepoints(df, cp_times, min_duration_s, stitch_gap_s, max_expansion_s, max_shrink_s, label_thresholds_s=None, do_purge=True, do_stitch=True, do_snap=True, do_purge_after=True)[source]#
Full interval-native correction pipeline.
- Return type:
- Steps:
purge_short_intervals — pre-cleanup (do_purge)
stitch_intervals — merge same-label across small gaps (do_stitch)
snap_boundaries — snap to changepoint times (do_snap)
purge_short_intervals — post-cleanup (do_purge_after)