Re: [Scikit-learn-general] Kernel PCA .fit() Failing Silently

2015-03-25 Thread Gael Varoquaux
> It would be nice to do something else instead of crash and burn, but for the > moment that's on the user. I think that in recent Python versions segfault can be captured. -- Dive into the World of Parallel Programming T

Re: [Scikit-learn-general] Kernel PCA .fit() Failing Silently

2015-03-25 Thread Andreas Mueller
Implementing this directly in the estimators seems very messy. If we had decent logging, we could try that. Unfortunately we don't. Pretty printing could also be achieved via a logging mechanism, so that people could define it themselves. I don't think it is something we necessary want to provide.

Re: [Scikit-learn-general] Kernel PCA .fit() Failing Silently

2015-03-25 Thread Sebastian Raschka
Hi, I think some memory monitoring/warning stuff would be very helpful in general. As far as I know, memory usage via e.g,. psutil is not supported by every OS or machine, but we could add an optional "monitor_memory" parameter to estimators/transformers like SomeEstimator(..., monitor_memory=

Re: [Scikit-learn-general] Kernel PCA .fit() Failing Silently

2015-03-25 Thread Andreas Mueller
It would be nice to do something else instead of crash and burn, but for the moment that's on the user. Well the kernel approximation should make it work. If you are after visualization I'd also recommend the T-SNE from this branch: https://github.com/scikit-learn/scikit-learn/pull/4025 On 0

Re: [Scikit-learn-general] Kernel PCA .fit() Failing Silently

2015-03-25 Thread Stephen O'Neill
Hey Andy, Hmmm, that might be it. My machine only has 8GB of RAM - why didn't I think of that? Indeed the RAM usage seems to have pretty large fluctuations for the process, and when I re-run now instead of just silently dying its choking up my whole computer - indicative of a RAM issue. Thank y

Re: [Scikit-learn-general] Kernel PCA .fit() Failing Silently

2015-03-25 Thread Andreas Mueller
Hi Steve. Can you monitor the RAM usage before it fails? Because of the complexity of the algorithm, and as we don't truncate the rbf kernel, this will take 16GB of ram. If the process starts swapping, your OS might just kill it. There is nothing much we can do about that. A solution to runnin

Re: [Scikit-learn-general] Kernel PCA .fit() Failing Silently

2015-03-25 Thread Stephen O'Neill
Hey Andy, Sorry, yes, by failing I mean it never finishes, and the python process dies without raising any exceptions. The shape of the data is (46196,114). Also numpy.all(numpy.isfinite(my_data)) returns True before I call transformer.fit() I'm running on python 2.7.8 numpy 1.9.1 sklearn 0.15.2

Re: [Scikit-learn-general] Kernel PCA .fit() Failing Silently

2015-03-23 Thread Andreas Mueller
Hi Steve. So by failing, you mean it never finishes? Or the python process dies? What is the shape of your data? Andy On 03/23/2015 02:14 PM, Stephen O'Neill wrote: Hi Sklearn, I'm using Kernel PCA with the rbf kernel for projecting data into 3 dimensions for viewing alongside normal PCA and

[Scikit-learn-general] Kernel PCA .fit() Failing Silently

2015-03-23 Thread Stephen O'Neill
Hi Sklearn, I'm using Kernel PCA with the rbf kernel for projecting data into 3 dimensions for viewing alongside normal PCA and a stereographic projection class that I wrote myself. Both the PCA and SGP classes seem to be functioning correctly on this data set, but when I get to the .fit() method