pub fn load_csv_and_preprocess<B: Backend>(
path: &Path,
sample_rate: f32,
device: &B::Device,
) -> Result<(Vec<InputBatch<B>>, PreprocInfo)>Expand description
Load EEG from a CSV file, preprocess, and produce InputBatches.
The CSV must have channel names in the header that match the standard 10-20 electrode names (possibly with “EEG “ prefix and “-REF” suffix). Applies the full LUNA pipeline (bandpass, notch, resample, bipolar montage, epoch).