<div dir="ltr">On top of that you can delete the epochs objects once they did their job.<div>Also take a look at my repo how I&#39;m using the MNE-Python ICA.</div><div><br></div><div><a href="https://github.com/dengemann/meeg-preprocessing/blob/master/examples/plot_preprocess_filter_ica.py">https://github.com/dengemann/meeg-preprocessing/blob/master/examples/plot_preprocess_filter_ica.py</a><br></div><div><br></div><div>and</div><div><br></div><div><a href="https://github.com/dengemann/meeg-preprocessing/blob/master/meeg_preprocessing/preprocessing.py#L109">https://github.com/dengemann/meeg-preprocessing/blob/master/meeg_preprocessing/preprocessing.py#L109</a><br></div><div><br></div><div>It&#39;s basically the pimped example inside a function + reporting functionality.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 25, 2015 at 4:06 PM, Mads Jensen <span dir="ltr">&lt;<a href="mailto:mje.mads@gmail.com" target="_blank">mje.mads@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dennis,<br>
<br>
In this particular script you are right that I didn&#39;t use the decim<br>
parameter. I just tried it playing around a bit in a previous version.<br>
<br>
I have combined MEG &amp; EEG so even a decim = 10 could work then.<br>
<br>
I haven&#39;t tried picking only the first 100-200 ecg events. I&#39;ll try that.<br>
<br>
cheers,<br>
mads<br>
<span class=""><br>
<br>
On 25/11/15 15:54, Denis-Alexander Engemann wrote:<br>
&gt; Hi Mads,<br>
&gt;<br>
</span><span class="">&gt; it seems you don&#39;t use the decim parameter, do you?<br>
&gt; Two things that I see immediately:<br>
&gt; It should in fact save a lot. With 1000HZ you can decimate even more,<br>
&gt; for ECG/EOG your sampling frequency should not be lower than 50 or so.<br>
&gt; Second as you have 1 hour of data the ecg_epochs will be huge, assuming<br>
&gt; you find many events.<br>
&gt; Very often only a few are necessary to do the detection. Have you tried<br>
&gt; picking the 100-200 first events?<br>
&gt;<br>
&gt; We&#39;ll have a closer look soon.<br>
&gt; Denis<br>
&gt;<br>
&gt; On Wed, Nov 25, 2015 at 3:47 PM, Mads Jensen &lt;<a href="mailto:mje.mads@gmail.com">mje.mads@gmail.com</a><br>
</span><span class="">&gt; &lt;mailto:<a href="mailto:mje.mads@gmail.com">mje.mads@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hi,<br>
&gt;<br>
&gt;     I use sklearn 0.17 (from anaconda). I have tried to the<br>
&gt;     &quot;decim&quot; param. I remember it as being &quot;3&quot; for data with 1000Hz<br>
&gt;     sfreq. But it didn&#39;t help much.<br>
&gt;<br>
&gt;     I have attach a script to show how I used it.<br>
&gt;<br>
&gt;     cheers,<br>
&gt;     mads<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     On 25/11/15 15:29, Denis-Alexander Engemann wrote:<br>
&gt;<br>
&gt;         Hi Mads,<br>
&gt;<br>
&gt;         Which version of sklearn are you using?<br>
&gt;         Do you use the decim parameter for ICA?<br>
&gt;         How do axactly do you use ICA?<br>
&gt;         50GB of memory is unexpected, it would mean that you make up to 10<br>
&gt;         copies of your data.<br>
&gt;<br>
&gt;<br>
&gt;         On Wed, Nov 25, 2015 at 3:24 PM, Mads Jensen &lt;<a href="mailto:mje.mads@gmail.com">mje.mads@gmail.com</a><br>
&gt;         &lt;mailto:<a href="mailto:mje.mads@gmail.com">mje.mads@gmail.com</a>&gt;<br>
</span><span class="">&gt;         &lt;mailto:<a href="mailto:mje.mads@gmail.com">mje.mads@gmail.com</a> &lt;mailto:<a href="mailto:mje.mads@gmail.com">mje.mads@gmail.com</a>&gt;&gt;&gt; wrote:<br>
&gt;<br>
&gt;              Hi all,<br>
&gt;<br>
&gt;              I would like to hear what people do to filter and run ICA<br>
&gt;         and if there<br>
&gt;              is any advise.<br>
&gt;<br>
&gt;              We usually have around an hour of recording which gives<br>
&gt;         ~4.5 to 5GB of<br>
&gt;              raw fiff files. First filtering and then running ICA in<br>
&gt;         MNE-python<br>
&gt;              requires a lot of memory, sometimes as much as 50GB. So, I<br>
&gt;         fairly often<br>
&gt;              get a memory error.<br>
&gt;<br>
&gt;              I would prefer not to downsample at this stage in the<br>
&gt;         process. So, I<br>
&gt;              kindly ask if anybody has any thoughts and/or practises to<br>
&gt;         avoid very<br>
&gt;              heavy memory use.<br>
&gt;<br>
&gt;              best wishes,<br>
&gt;              mads<br>
&gt;              _______________________________________________<br>
&gt;              Mne_analysis mailing list<br>
&gt;         <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt;         &lt;mailto:<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a>&gt;<br>
</span>&gt;              &lt;mailto:<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<div class="HOEnZb"><div class="h5">&gt;         &lt;mailto:<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a>&gt;&gt;<br>
&gt;         <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
&gt;<br>
&gt;<br>
&gt;              The information in this e-mail is intended only for the<br>
&gt;         person to<br>
&gt;              whom it is<br>
&gt;              addressed. If you believe this e-mail was sent to you in<br>
&gt;         error and<br>
&gt;              the e-mail<br>
&gt;              contains patient information, please contact the Partners<br>
&gt;         Compliance<br>
&gt;              HelpLine at<br>
&gt;         <a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to<br>
&gt;              you in error<br>
&gt;              but does not contain patient information, please contact<br>
&gt;         the sender<br>
&gt;              and properly<br>
&gt;              dispose of the e-mail.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         _______________________________________________<br>
&gt;         Mne_analysis mailing list<br>
&gt;         <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt;         &lt;mailto:<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a>&gt;<br>
&gt;         <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
&gt;<br>
&gt;<br>
&gt;         The information in this e-mail is intended only for the person<br>
&gt;         to whom it is<br>
&gt;         addressed. If you believe this e-mail was sent to you in error<br>
&gt;         and the e-mail<br>
&gt;         contains patient information, please contact the Partners<br>
&gt;         Compliance HelpLine at<br>
&gt;         <a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent<br>
&gt;         to you in error<br>
&gt;         but does not contain patient information, please contact the<br>
&gt;         sender and properly<br>
&gt;         dispose of the e-mail.<br>
&gt;<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     Mne_analysis mailing list<br>
&gt;     <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt;     &lt;mailto:<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a>&gt;<br>
&gt;     <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
&gt;<br>
&gt;<br>
&gt;     The information in this e-mail is intended only for the person to<br>
&gt;     whom it is<br>
&gt;     addressed. If you believe this e-mail was sent to you in error and<br>
&gt;     the e-mail<br>
&gt;     contains patient information, please contact the Partners Compliance<br>
&gt;     HelpLine at<br>
&gt;     <a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to<br>
&gt;     you in error<br>
&gt;     but does not contain patient information, please contact the sender<br>
&gt;     and properly<br>
&gt;     dispose of the e-mail.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt; <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
&gt;<br>
&gt;<br>
&gt; The information in this e-mail is intended only for the person to whom it is<br>
&gt; addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
&gt; contains patient information, please contact the Partners Compliance HelpLine at<br>
&gt; <a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
&gt; but does not contain patient information, please contact the sender and properly<br>
&gt; dispose of the e-mail.<br>
&gt;<br>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
</div></div></blockquote></div><br></div>