cogpy.preprocess.badchannel.badlabel

Bad-channel labeling (outlier detection) helpers.

This module holds the core logic so the Snakemake scripts/badlabel.py entrypoint can remain a thin orchestrator.

Functions

dbscan_outliers(x, *, params)

Return (is_outlier, eps_used) for a feature matrix.

grouped_dbscan_outliers(x, *, group_labels, ...)

DBSCAN outliers computed independently per group label (topological isolation).

Classes

DbscanParams(knn, min_samples, ...[, ...])