braindecode.samplers.SequenceSampler#
- class braindecode.samplers.SequenceSampler(metadata, n_windows, n_windows_stride, random_state=None)[source]#
Sample sequences of consecutive windows.
- Parameters
- info#
See RecordingSampler.
- Type
pd.DataFrame
- file_ids#
Array of shape (n_sequences,) that indicates from which file each sequence comes from. Useful e.g. to do self-ensembling.
- Type
np.ndarray of ints
Examples using braindecode.samplers.SequenceSampler
#
![Sleep staging on the Sleep Physionet dataset using U-Sleep network](../_images/sphx_glr_plot_sleep_staging_usleep_thumb.png)
Sleep staging on the Sleep Physionet dataset using U-Sleep network
Sleep staging on the Sleep Physionet dataset using U-Sleep network
![Sleep staging on the Sleep Physionet dataset using Eldele2021](../_images/sphx_glr_plot_sleep_staging_eldele2021_thumb.png)
Sleep staging on the Sleep Physionet dataset using Eldele2021
Sleep staging on the Sleep Physionet dataset using Eldele2021
![Sleep staging on the Sleep Physionet dataset using Chambon2018 network](../_images/sphx_glr_plot_sleep_staging_chambon2018_thumb.png)
Sleep staging on the Sleep Physionet dataset using Chambon2018 network
Sleep staging on the Sleep Physionet dataset using Chambon2018 network