<p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;"> External Email - Use Caution </span></p><p></p><div dir="ltr"><div>Hi Alex,</div><div><br></div><div>This given example working fine for my dataset as well.</div><div><br></div><div><span style="font-family:monospace,monospace">selected_funcs = {'std', 'kurtosis'}<br>pow_freq_bands__freq_bands = array([0.5, 4., 8., 13., 30.]) <br>X_new = extract_features(epochs_data, <a href="http://raw.info" target="_blank">raw.info</a>['sfreq'], selected_funcs)</span></div><div><span style="font-family:monospace,monospace"><br></span></div><div>The problem comes when I try to select a function which has parameters and which shoud pass to the extract_features() sepeately. In this case, <span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace">pow_freq_bands__freq_bands</span></span>. Also I couldn't find such examples in internet.</div><div><br></div><div>Code which gives the error:<span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace">selected_funcs = {'std', 'kurtosis','pow_freq_bands'}<br>pow_freq_bands__freq_bands = array([0.5, 4., 8., 13., 30.]) <br>X_new = extract_features(epochs_data, <a href="http://raw.info" target="_blank">raw.info</a>['sfreq'], selected_funcs, pow_freq_bands__freq_bands)</span></span></div><div><br></div><div>Thank you.<br></div><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 19, 2019 at 4:54 PM Alexandre Gramfort <<a href="mailto:alexandre.gramfort@inria.fr">alexandre.gramfort@inria.fr</a>> 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"> External Email - Use Caution <br>
<br>
hi,<br>
<br>
do the examples we provide work? does it break only with your data?<br>
<br>
Alex<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><br clear="all"><br><br></div>