Open xhl-JMT opened 3 months ago
I think you get a sample with a fixed index. Replace the following lines
_x_np = _xxx_dataset[0][0].numpy()
_y_np = _xxx_dataset[0][1].numpy()
into
_x_np = _xxx_dataset[i][0].numpy()
_y_np = _xxx_dataset[i][1].numpy()
This is my code, could you help me find the trouble, many thanks !
import numpy as np from loader import EEGDataLoader
cfg = { "dataset": { "name": "Sleep-EDF-2018", "eeg_channel": "Fpz-Cz", "num_splits": 10, "seq_len": 1, "target_idx": -1,
"root_dir": "./",