nbara / python-meegkit

🔧🧠 MEEGkit: MEG & EEG processing toolkit in Python
https://nbara.github.io/python-meegkit/
BSD 3-Clause "New" or "Revised" License
186 stars 51 forks source link

Dataset format, can you clarify it? #65

Closed Ildaron closed 1 year ago

Ildaron commented 1 year ago

Hello, can you clarify about dataset format? for example_asr.py

My dataset has the next structure in txt or excel formats and put this data to numpy ch1 ch2 ch3 ch4 ch5 ch6 ch7 ch8 1 1 1 1 1 1 1 1

But when I use example for ASR and put this data in numpy to Raw (line - 17 in example_asr.py)- I receive error

nbara commented 1 year ago

Can you do data.shape and give me the output?

Ildaron commented 1 year ago

Hi @nbara thank you for your answer,

nbara commented 1 year ago

Ok that's good. What error do you get when running the asr example?

Ildaron commented 1 year ago

Hi @nbara thank you for your answer, is it the correct format, that I use? in the line- _, sample_mask = asr.fit(raw[:, train_idx]) from example_asr.py

I receive the next error IndexError: index 8 is out of bounds for axis 1 with size 8

Ildaron commented 1 year ago

Hi @nbara do you have any update?

nbara commented 1 year ago

hi @Ildaron, can you do print(raw.shape) ?

It looks like you have the wrong dimensions. It should be (channels, time). The error seems to indicate that you have the other way around.

Ildaron commented 1 year ago

@nbara thank you for your reply, Yes I also think that problem with the dimension, can you just share some dataset that was used for your library? Then I quickly will figure out what was wrong

nbara commented 1 year ago

@Ildaron An example dataset is shown in https://github.com/nbara/python-meegkit/blob/master/examples/example_asr.py which should be runnable on your machine once you have cloned the repo

Ildaron commented 1 year ago

@nbara thank you so much