ethograph.features.changepoints#

Functions

add_NaN_boundaries

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

changepoint_fired

Where mask fires at selections: a boolean (T,) array on the mask's own time axis.

changepoint_mask_times

Times at which mask fires at selections, read off the mask's own time coordinate.

correct_changepoints

Full interval-native correction pipeline.

correct_changepoints_automatic

Lightweight cleanup used while manually creating labels.

dataset_changepoint_times

Sorted, unique times of every changepoint mask in ds — of feature only when given.

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 changepoint variables in a dataset into a single boolean mask.

more_changepoint_features

Create changepoint-based features from a binary changepoint array.