ethograph.features.changepoints#

Functions

add_NaN_boundaries

Merge NaN-transition boundaries with other changepoints -> binary mask.

correct_changepoints

Full interval-native correction pipeline.

correct_changepoints_automatic

Lightweight cleanup used while manually creating labels.

correct_changepoints_dense

Correct dense label arrays using changepoints (legacy ML pipeline).

extract_cp_times

Extract merged changepoint times from dataset.

find_nearest_turning_points_binary

Convert a 1D signal into a binary mask marking boundaries of peak regions.

find_peaks_binary

scipy.signal.find_peaks + NaN boundaries -> binary mask.

find_troughs_binary

Find troughs (local minima) + NaN boundaries -> binary mask.

merge_changepoints

Merge all changepoint variables in a dataset into a single boolean mask.

more_changepoint_features

Create changepoint-based features from a binary changepoint array.

snap_to_nearest_changepoint_time

Snap a clicked time (seconds) to the nearest changepoint time.