Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

What we want to do now is we want to use some fancy machine learning to see if there's any differences between two selected conditions in one of our experiments. We will load the epochs (the epochs before running ica or ssp). For example we can look at the differences between auditory left and auditory right stimulation.

it's always a good idea to equalize the number of epochs in each condition

what we want to do is we want to train the classifier, so we show it a bunch of epoch and we tell it okay so this is auditory left, this is auditory right, we hope that it learns the spatial temporal pattern, and when we then show it some epochs it hasn't seen before it will be able to tell us oh yeah this is most likely auditory left or this is most likely auditory right

we are going to use the mne Scaler which is aware of different channel types so it knows how to treat magnetometer, eeg and gradiometer data and scale them properly. ThenVectorizer() which takes care of bringing the data into the correct shape and then LogisticRegression() and then we use a cross validation scheme meaning to split the data into train and tests automatically, we're going to do this five times and we use the area under curve to evaluate classifier performance