Hello guys, I’m annotating my data like the code shows:
my_annot = mne.Annotations(onset=2670, # in seconds
duration=170, # in seconds, too
description='seizure')
print(my_annot)
raw.set_annotations(my_annot)
After a series os preprocessing I transform the data to a pandas dataframe, however the column condition only shows the number one. The annotations indicate seizure and I need them to be correctly labeled for classification purposes.
raw.set_eeg_reference()
raw.filter(1., None)
raw.apply_function (lambda x: x * 1e-6)
raw.pick_channels(['F3-C3','C3-P3', 'F4-C4','C4-P4' ])
raw.filter(l_freq=0.5,h_freq=40.0, method='iir', iir_params=iir_params, verbose=True)
epochs=mne.make_fixed_length_epochs(raw, duration=4, overlap=0.5)
epochs=epochs.to_data_frame()