[scikit-learn] Ipython Jupyter Kernel Dies when I fit an SGDClassifier

Aymen J ay.j at hotmail.fr
Fri Jun 2 07:01:21 EDT 2017


Thanks for the answer. Not really. How can I do that?

Sent from my iPhone

On Jun 2, 2017, at 12:51 PM, Iván Vallés Pérez <ivanvallesperez at gmail.com<mailto:ivanvallesperez at gmail.com>> wrote:

Are you monitoring your RAM memory consumption? I would say that it is the cause of the majority of the kernel crashes
El El vie, 2 jun 2017 a las 12:45, Aymen J <ay.j at hotmail.fr<mailto:ay.j at hotmail.fr>> escribió:

Hey Guys,


So I'm trying to fit an SGD classifier on a dataset that has 900,000 for about 3,600 features (high cardinality).


Here is my model:

model = SGDClassifier(loss='log',penalty=None,alpha=0.0,
              l1_ratio=0.0,fit_intercept=False,n_iter=1,shuffle=False,learning_rate='constant',
             eta0=1.0)

When I run the model.fit function, The program runs for about 5 minutes, and I receive the message "the kernel has died" from Jupyter.

Any idea what may cause that? Is my training data too big (in terms of features)? Can I do anything (parameters) to finish training?

Thanks in advance for your help!



_______________________________________________
scikit-learn mailing list
scikit-learn at python.org<mailto:scikit-learn at python.org>
https://mail.python.org/mailman/listinfo/scikit-learn
_______________________________________________
scikit-learn mailing list
scikit-learn at python.org<mailto:scikit-learn at python.org>
https://mail.python.org/mailman/listinfo/scikit-learn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20170602/d7d530ff/attachment.html>


More information about the scikit-learn mailing list