swabygw
swabygw

Reputation: 913

SCIKIT FastICA Maximum Number of Iterations

I'm getting the following error: "FastICA did not converge. Consider increasing tolerance or the maximum number of iterations".

So, considering the documentation here: http://scikit-learn.org/stable/modules/generated/sklearn.decomposition.FastICA.html , what is the maximum number of iterations that I can plug into the max_iter parameter?

Upvotes: 1

Views: 4849

Answers (2)

Cines of Lode
Cines of Lode

Reputation: 129

Late to the game, but this still might be helpful for someone. I had the same error and increasing the max_iter parameter didn' actually help (it just took longer to get the same warning message).

What helped in my case was applying a stronger Highpass filter to the data (had to change it from 0.5Hz to 1Hz) before starting the ICA.

Upvotes: 1

Ryan
Ryan

Reputation: 489

You can try to increase your max_iter. I had this error and increased the tolerance (tol) though and it seemed to remove the error.

Upvotes: 2

Related Questions