<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style id="ms-outlook-ios-style" type="text/css">html {
background-color: transparent;
}

body {
color: #333;
line-height: 150%;
font-family: "-apple-system", "HelveticaNeue";
margin: 0;
}

.ms-outlook-ios-reference-expand {
display: block;
color: #999;
padding: 20px 0px;
text-decoration: none;
}

.ms-outlook-ios-availability-container {
max-width: 500px;
margin: auto;
padding: 12px 15px 15px 15px;
border: 1px solid #C7E0F4;
border-radius: 4px;
}

.ms-outlook-ios-availability-container > .ms-outlook-ios-availability-delete-button {
width: 25px;
height: 25px;
right: -12px;
top: -12px;
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABLCAYAAAA4TnrqAAAAAXNSR0IArs4c6QAACxpJREFUeAHlnFuMXlUVx/fcOzNtp0ynF0U7hWKrEmKLosZEjUZ9MgZIQBNC0uAtJr745oOJIT74xgskJkQbAlQNJmBMfNDEG0YjEC7GIBQZ6IAI005L79O5+/+dfut0f5dzzt7nu8w37UrWt893zt5rr/U/e6+zL+ucHrcGtLq62q9qd4gnxTeKb6kcc267eEI8Kz4mnhFPi58Rv1g5nunp6VnS8ZVHAqdHPCk+KP6zuBWEHORNinvWNWoYIN4q/o74mLidhHzqob71AxzKij8g/p14LYh6qb97QUM58T7x38TdQOiBPt0FmhQaEf9M3I2EXiNr7tOkBK3pVvGCuJsJ/dCzqVbWWxZxVTygso+InxBz3M2Efuj5SEXvUrqWQloV7lRtT4vfX6rWtS30pqr/uMZp78SqEQ2WgPqQKvmnuKWtaWnFuaWVVbciXl51rk+a9fb2uP6EY80qzL+oHB8RYC8V5vQyRIEloD6tsk965UsdAsyZ+WV35uKyOz+/4uZ0YgmEMqhfyA3397rRoV63eUOf2zzUJxAzMsed/owA+2tokWCwmgVKDcadvLDsZs8vutMXV5zkhepYl08GurENvW5idMCNj/Q5Nb5mKBiwoGoqXe/fZTQCkmNnl9x/Ty+4xZzW0yeLB9WC6Hp0QbLSJRd0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6Ov040O3J06LsV3CKzVpBvqgClPUJQfUcEWO8Dgjoi79UDoaYNp9MeOQPohQJHXfBbHD/NTRDRFooKN2IeLiEyxYh1N0e9t6WmE/hFu4DEr54P1B50MGs2z4E9UMMS0gdDE5eYG9YmsdvygF/rZxBm9/Q2Lgjp/r+vp4zYFS00Nc39cUDi9TPi0TUDZ4X1FCnUjoZfFZqAvekfQd60LUiYFqyLgUaXTlePchMgUwqclLMl3WvtvhCZ2E6EPekHoib4RET9/V7FXk8KVnyqwJJBByI/8DHnHbCkRPm2E/+oWwGpjStHT3wIznXPSe/xWRb4qsCoFDyl9qnJcmBBnTvi0EYC9NLN2PgwfRf3oYYR+kfHwYFDnvxs+FDRIPaDMfHQiaJbJc7U2vJvH85UWB98QLNnOqP4+Jd/jOJTW+g0Lhgf21MNHdeQNC8ARWAymcHIf5X8osVZ01b27AzgC7Holz4nH+B9KDAKvqrfCDBgB9hUdPy4O8l9WjpRFtqvmfUMzXIB9U8cP2v+YFOcf8yYr227sTLHCwexgXb3JasAIsB/oOHgMZuUsxXha2hX/jrQZ3CxgJoe1LSLuCCSLfvteczuWuANXOK3KrDT4ZXIEZA4dsqRXuuRPdD3ah2XJ5DwAEs1C16MV0hXpksznWgSMXz0j1vZ+18FqE2A4/YfFUU9JK7/G6Zuqv9QXQxpNdwpt0YDvN8p0szhoZ6hQYOcyHFZVvDSe+5Z9W9RRCxsU3ydeEnczteQrRy0BUSgdEP+jS9Hqju9n+UgLKL6l9XXx0S4BrTu/zFYDWr/AOig+skagdf83/3zAOBZQvOryRTEf+Donbid15GuS0eOsWlBC/gsl9iW/LP6C+PPi68TN0usS8EcxH6z4be2qZrPCG5XvCFi1FQu8SZ1j6YdXYeC9YuLxiZyGicQltpuoRPiEmJVLwqPgZwXOtNKO0v8BzRAPSFNM7HEAAAAASUVORK5CYII=");
background-size: 25px 25px;
background-position: center;
}

#ms-outlook-ios-main-container {
margin: 0 0 0 0;
margin-top: 120;
padding: 8;
}

#ms-outlook-ios-content-container {
padding: 0;
padding-top: 12;
padding-bottom: 20;
}

.ms-outlook-ios-mention {
color: #333;
background-color: #f1f1f1;
border-radius: 4px;
padding: 0 2px 0 2px;
pointer-events: none;
text-decoration: none;
}

.ms-outlook-ios-mention-external {
color: #ba8f0d;
background-color: #fdf7e7;
}

.ms-outlook-ios-mention-external-clear-design {
color: #ba8f0d;
background-color: #f1f1f1;
}</style>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
</head>
<body style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">
<div style="direction: ltr;">
<div>
<div></div>
</div>
<div style="direction: ltr;">Thanks Alex and Mainak,</div>
<div><br>
</div>
<div style="direction: ltr;">&nbsp; &nbsp; I’ll try changing the number of components and interpolating a larger section of the data to abolish the stim artifact (the data I sent was TMS-EEG data).&nbsp;</div>
<div><br>
</div>
<div class="ms-outlook-ios-signature">
<div style="direction: ltr;">Alex</div>
<div><br>
</div>
<div style="direction: ltr;">Translational NeuroEngineering Laboratory</div>
<div style="direction: ltr;">Division of Neurotherapeutics, Department of Psychiatry</div>
<div style="direction: ltr;">Massachusetts General Hospital, Martinos Center</div>
<div style="direction: ltr;">149 13th St Charlestown #2301, Boston, MA 02129</div>
</div>
</div>
<div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="dir=&quot;ltr&quot;"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> mne_analysis-bounces@nmr.mgh.harvard.edu &lt;mne_analysis-bounces@nmr.mgh.harvard.edu&gt; on behalf of Mainak Jas &lt;mainakjas@gmail.com&gt;<br>
<b>Sent:</b> Wednesday, July 3, 2019 4:41 PM<br>
<b>To:</b> Discussion and support forum for the users of MNE Software<br>
<b>Subject:</b> Re: [Mne_analysis] Applying ICA with No Components Selected out but Signal Changes Using Default Parameters
<div>&nbsp;</div>
</font></div>
<meta content="text/html; charset=utf-8">
<p><span style="padding:3px 10px; border-radius:5px; color:#ffffff; font-weight:bold; display:inline-block; background-color:#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<p></p>
<div dir="ltr">
<div class="markdown-here-wrapper" style="">
<p style="margin:0px 0px 1.2em!important">I can confirm what Alex said. Here’s a simpler script to play with:</p>
<pre style="font-size:0.85em; font-family:Consolas,Inconsolata,Courier,monospace; font-size:1em; line-height:1.2em; margin:1.2em 0px"><code class="hljs language-py" style="font-size:0.85em; font-family:Consolas,Inconsolata,Courier,monospace; margin:0px 0.15em; padding:0px 0.3em; white-space:pre-wrap; border:1px solid rgb(234,234,234); background-color:rgb(248,248,248); border-radius:3px; display:inline; white-space:pre; overflow:auto; border-radius:3px; border:1px solid rgb(204,204,204); padding:0.5em 0.7em; display:block!important; display:block; overflow-x:auto; padding:0.5em; color:rgb(51,51,51); background:rgb(248,248,248) none repeat scroll 0% 0%"><span class="hljs-keyword" style="color:rgb(51,51,51); font-weight:bold">import</span> mne<span class="hljs-keyword" style="color:rgb(51,51,51); font-weight:bold">from</span> mne.preprocessing <span class="hljs-keyword" style="color:rgb(51,51,51); font-weight:bold">import</span> ICA<span class="hljs-keyword" style="color:rgb(51,51,51); font-weight:bold">from</span> numpy.testing <span class="hljs-keyword" style="color:rgb(51,51,51); font-weight:bold">import</span> assert_array_equalepochs = mne.read_epochs(<span class="hljs-string" style="color:rgb(221,17,68)">'test-epo.fif'</span>, preload=<span class="hljs-keyword" style="color:rgb(51,51,51); font-weight:bold">True</span>)epochs.pick_types(meg=<span class="hljs-keyword" style="color:rgb(51,51,51); font-weight:bold">False</span>, eeg=<span class="hljs-keyword" style="color:rgb(51,51,51); font-weight:bold">True</span>)epochs.crop(<span class="hljs-number" style="color:rgb(0,128,128)">0.2</span>, <span class="hljs-keyword" style="color:rgb(51,51,51); font-weight:bold">None</span>)epochs2 = epochs.copy()reject = dict(eeg=<span class="hljs-number" style="color:rgb(0,128,128)">200e-6</span>)ica = ICA(method=<span class="hljs-string" style="color:rgb(221,17,68)">'fastica'</span>, random_state=<span class="hljs-number" style="color:rgb(0,128,128)">42</span>, max_iter=<span class="hljs-number" style="color:rgb(0,128,128)">500</span>, n_components=<span class="hljs-number" style="color:rgb(0,128,128)">0.95</span>)ica.fit(epochs.copy().drop_bad(reject=reject), decim=<span class="hljs-number" style="color:rgb(0,128,128)">10</span>)ica.apply(epochs2, exclude=[])epochs.average().plot()epochs2.average().plot()<span class="hljs-comment" style="color:rgb(153,153,136); font-style:italic"># from mne import combine_evoked</span><span class="hljs-comment" style="color:rgb(153,153,136); font-style:italic"># evoked_diff = combine_evoked([epochs.average(), -epochs2.average()], 'equal')</span><span class="hljs-comment" style="color:rgb(153,153,136); font-style:italic"># evoked_diff.plot()</span>assert_array_equal(epochs.get_data(), epochs2.get_data())</code></pre>
<p style="margin:0px 0px 1.2em!important">Using <code style="font-size:0.85em; font-family:Consolas,Inconsolata,Courier,monospace; margin:0px 0.15em; padding:0px 0.3em; white-space:pre-wrap; border:1px solid rgb(234,234,234); background-color:rgb(248,248,248); border-radius:3px; display:inline">
n_components=0.95</code> vs <code style="font-size:0.85em; font-family:Consolas,Inconsolata,Courier,monospace; margin:0px 0.15em; padding:0px 0.3em; white-space:pre-wrap; border:1px solid rgb(234,234,234); background-color:rgb(248,248,248); border-radius:3px; display:inline">
n_components=1.0</code> actually seems to make a huge difference, perhaps for the reasons that Alex outlines. Ultimately, what you reconstruct depends on the quality of your decomposition -- and it's not perfect.<br>
</p>
<p style="margin:0px 0px 1.2em!important">Best,<br>
Mainak</p>
<div title="MDH:PGRpdj5JIGNhbiBjb25maXJtIHdoYXQgQWxleCBzYWlkLiBIZXJlJ3MgYSBzaW1wbGVyIHNjcmlwdCB0byBwbGF5IHdpdGg6PC9kaXY&#43;PGRpdj48YnI&#43;PC9kaXY&#43;PGRpdj5gYGBweTwvZGl2Pjx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&#43;PGRpdj48YnI&#43;PC9kaXY&#43;PGRpdj5Vc2luZyBgbl9jb21wb25lbnRzPTAuOTVgIHZzIGBuX2NvbXBvbmVudHM9MS4wYCBhY3R1YWxseSBzZWVtcyB0byBtYWtlIGEgaHVnZSBkaWZmZXJlbmNlLCBwZXJoYXBzIGZvciB0aGUgcmVhc29ucyB0aGF0IEFsZXggb3V0bGluZXMuPC9kaXY&#43;PGRpdj48YnI&#43;PC9kaXY&#43;PGRpdj5CZXN0LDwvZGl2PjxkaXY&#43;TWFpbmFrPGJyPjwvZGl2Pg==" style="height:0; width:0; max-height:0; max-width:0; overflow:hidden; font-size:0em; padding:0; margin:0">
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Jul 3, 2019 at 4:23 PM Alexandre Gramfort &lt;<a href="mailto:alexandre.gramfort@inria.fr">alexandre.gramfort@inria.fr</a>&gt; wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
&nbsp; &nbsp; &nbsp; &nbsp; External Email - Use Caution&nbsp; &nbsp; &nbsp; &nbsp; <br>
<br>
Hi Alex,<br>
<br>
I could replicate the pb and start to investigate.<br>
<br>
You have a strong transient artifact in your data (stim artifact I suspect)<br>
and this affects the conditioning of the mixing matrix. So when computing<br>
the pinv here: <a href="https://github.com/mne-tools/mne-python/blob/master/mne/preprocessing/ica.py#L677" rel="noreferrer" target="_blank">
https://github.com/mne-tools/mne-python/blob/master/mne/preprocessing/ica.py#L677</a><br>
the mixing is not numerically the inverse of the unmixing matrix.<br>
<br>
I don't know exactly how to fix this but that's a starting point.<br>
He someone can look into this it's great.<br>
<br>
Alex<br>
<br>
On Wed, Jul 3, 2019 at 3:33 PM Rockhill, Alexander P.<br>
&lt;<a href="mailto:AROCKHILL@mgh.harvard.edu" target="_blank">AROCKHILL@mgh.harvard.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Alex and Mainak,<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp;The n_components argument is given None which yields 57 components and there are 64 channels with 7 bad channels which are not included so no I don't think it's because of the dimensionality reduction. Maybe it's some whitening.<br>
&gt;<br>
&gt; To see something similar to what I'm looking at as far as scaling you can use the script below but I haven't been able to replicate the changes after ICA with sample data. I filedropped you both test epochs to the emails you responded to the thread with that
 does show that.<br>
&gt;<br>
&gt; from time import time<br>
&gt; import matplotlib.pyplot as plt<br>
&gt; import mne<br>
&gt; from mne.preprocessing import ICA<br>
&gt; from mne.datasets import sample<br>
&gt;<br>
&gt; '''data_path = sample.data_path()<br>
&gt; raw_fname = data_path &#43; '/MEG/sample/sample_audvis-raw.fif'<br>
&gt;<br>
&gt; raw = mne.io.Raw(raw_fname, preload=True)<br>
&gt; events = mne.find_events(raw)<br>
&gt; epochs = mne.Epochs(raw, events, preload=True)<br>
&gt;<br>
&gt; '''<br>
&gt; epochs = mne.read_epochs('test-epo.fif', preload=True)<br>
&gt;<br>
&gt; epochs = epochs.pick_types(meg=False, eeg=True)<br>
&gt;<br>
&gt; fig, (ax0, ax1) = plt.subplots(1,2)<br>
&gt; epochs.average().plot(axes=ax0, show=False)<br>
&gt;<br>
&gt; ica = ICA(method='fastica', random_state=0)<br>
&gt; t0 = time()<br>
&gt; ica.fit(epochs)<br>
&gt; fit_time = time() - t0<br>
&gt; epochs = ica.apply(epochs, exclude=ica.exclude)<br>
&gt; epochs.average().plot(axes=ax1, show=False)<br>
&gt; ica.plot_sources(epochs)<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Alex<br>
&gt;<br>
&gt; Translational NeuroEngineering Laboratory<br>
&gt; Division of Neurotherapeutics, Department of Psychiatry<br>
&gt; Massachusetts General Hospital, Martinos Center<br>
&gt; 149 13th St Charlestown #2301, Boston, MA 02129<br>
&gt; ________________________________<br>
&gt; From: <a href="mailto:mne_analysis-bounces@nmr.mgh.harvard.edu" target="_blank">
mne_analysis-bounces@nmr.mgh.harvard.edu</a> &lt;<a href="mailto:mne_analysis-bounces@nmr.mgh.harvard.edu" target="_blank">mne_analysis-bounces@nmr.mgh.harvard.edu</a>&gt; on behalf of Alexandre Gramfort &lt;<a href="mailto:alexandre.gramfort@inria.fr" target="_blank">alexandre.gramfort@inria.fr</a>&gt;<br>
&gt; Sent: Wednesday, July 3, 2019 2:30 AM<br>
&gt; To: Discussion and support forum for the users of MNE Software<br>
&gt; Subject: Re: [Mne_analysis] Applying ICA with No Components Selected out but Signal Changes Using Default Parameters<br>
&gt;<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;External Email - Use Caution<br>
&gt;<br>
&gt; hi,<br>
&gt;<br>
&gt; can you check that the number of components you fit is equal to the number of channels?<br>
&gt; If it's less you have a dimensionality reduction step.<br>
&gt;<br>
&gt; Alex<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jul 2, 2019 at 11:28 PM Mainak Jas &lt;<a href="mailto:mainakjas@gmail.com" target="_blank">mainakjas@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;External Email - Use Caution<br>
&gt;<br>
&gt; Hi Alex,<br>
&gt;<br>
&gt; Could you provide us a full script on the MNE sample data that we can run?<br>
&gt;<br>
&gt; Mainak<br>
&gt;<br>
&gt; On Tue, Jul 2, 2019 at 5:14 PM Rockhill, Alexander P. &lt;<a href="mailto:AROCKHILL@mgh.harvard.edu" target="_blank">AROCKHILL@mgh.harvard.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; Also, of note the ica scale is off by quite a lot in the plot_sources plot, it is way too zoomed in.<br>
&gt;<br>
&gt; Alex<br>
&gt;<br>
&gt; Translational NeuroEngineering Laboratory<br>
&gt; Division of Neurotherapeutics, Department of Psychiatry<br>
&gt; Massachusetts General Hospital, Martinos Center<br>
&gt; 149 13th St Charlestown #2301, Boston, MA 02129<br>
&gt; ________________________________<br>
&gt; From: <a href="mailto:mne_analysis-bounces@nmr.mgh.harvard.edu" target="_blank">
mne_analysis-bounces@nmr.mgh.harvard.edu</a> &lt;<a href="mailto:mne_analysis-bounces@nmr.mgh.harvard.edu" target="_blank">mne_analysis-bounces@nmr.mgh.harvard.edu</a>&gt; on behalf of Rockhill, Alexander P. &lt;<a href="mailto:AROCKHILL@mgh.harvard.edu" target="_blank">AROCKHILL@mgh.harvard.edu</a>&gt;<br>
&gt; Sent: Tuesday, July 2, 2019 3:25 PM<br>
&gt; To: <a href="mailto:mne_analysis@nmr.mgh.harvard.edu" target="_blank">mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt; Subject: [Mne_analysis] Applying ICA with No Components Selected out but Signal Changes Using Default Parameters<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp;In an analysis, I am running:<br>
&gt;<br>
&gt; ica = ICA(method='fastica', n_components=n_components,&nbsp; # n_components=None<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;random_state=seed)<br>
&gt; ica.fit(inst2)<br>
&gt; ...<br>
&gt; inst2 = ica.apply(inst2, exclude=ica.exclude)<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp;and when I skip all intermediate steps and just fit the ICA and apply it with an empty list for ica.exclude the signal still changes, quite a bit. I thought if no components were selected out and all the max PCA components were used the signal would be
 unchanged or basically unchanged. Is this a bug or something with my implementation?<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Alex<br>
&gt;<br>
&gt; Translational NeuroEngineering Laboratory<br>
&gt; Division of Neurotherapeutics, Department of Psychiatry<br>
&gt; Massachusetts General Hospital, Martinos Center<br>
&gt; 149 13th St Charlestown #2301, Boston, MA 02129<br>
&gt; _______________________________________________<br>
&gt; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">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; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">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; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">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>
<br>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">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>
</blockquote>
</div>
</div>
</body>
</html>