question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG: Manipulating the times property of Epochs results in wrong data after average if data was not loaded.

See original GitHub issue

Describe the bug

An Epochs object has a times property that can be modified. The effect of modifying this property is inconsistent, depending on whether the Epochs object has preloaded data (i.e. load_data) was called or not.

I created a test for this bug: https://github.com/thht/mne-python/blob/th/test_timeshift_master/mne/tests/test_timeshift.py

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
larsonercommented, Oct 23, 2018

Let’s do that for now and if we need it for preload=False we can always make it work later

0reactions
jasmainakcommented, Oct 23, 2018

I would say it’s fine to make it work only for preload=True

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is a large number of epochs good or bad idea in CNN
In my CNN model, by using large number of epochs like 400 or above, the validations accuracy and some times test accuracy gets...
Read more >
mne.Epochs — MNE 1.2.2 documentation - MNE-Python
If 0 or 1, the data channels (MEG and EEG) will be detrended when loaded. 0 is a constant (DC) detrend, 1 is...
Read more >
Why Do I Get Different Results Each Time in Machine Learning?
Perhaps your model is making different predictions each time it is trained, even when it is trained on the same data set each...
Read more >
Options for training deep learning neural network - MathWorks
If you specify validation data in trainingOptions , then the figure shows validation ... The figure marks each training Epoch using a shaded...
Read more >
d. Indep. Comp. Analysis - EEGLAB Wiki
Load the sample EEGLAB dataset; Run ICA; Which ICA Algorithm? ... artifact removal before ICA; Applying ICA to data epochs instead of continuous...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found