AlessioZanga / PyEEGLab

Analyze and manipulate EEG data using PyEEGLab.
GNU General Public License v3.0
60 stars 23 forks source link

First example in README.md is wrong #28

Closed lienz closed 4 years ago

lienz commented 4 years ago

Hi, Thanks for the nice library. Just a small comment, the first example in the README is:

from pyeeglab import *
dataset = TUHEEGAbnormalDataset()
pipeline = Pipeline([
    CommonChannelSet(),
    LowestFrequency(),
    ToDataframe(),
    MinMaxCentralizedNormalization(),
    DynamicWindow(8),
    ToNumpy()
])
dataset = dataset.set_pipeline(preprocessing).load()
data, labels = dataset['data'], dataset['labels']

but it should be:

from pyeeglab import *
dataset = TUHEEGAbnormalDataset()
preprocessing = Pipeline([
    CommonChannelSet(),
    LowestFrequency(),
    ToDataframe(),
    MinMaxCentralizedNormalization(),
    DynamicWindow(8),
    ToNumpy()
])
dataset = dataset.set_pipeline(preprocessing).load()
data, labels = dataset['data'], dataset['labels']
AlessioZanga commented 4 years ago

Opsie, it's a typo, thanks!