Re: [Scikit-learn-general] model persistence and sklearn version upgrades

2012-01-31 Thread Gael Varoquaux
All your remarks are valid, but what it really boils down to is that general purpose persistence is hard. Given well-defined objects, good persistence scheme can be developped, but than you have to worry about transition that code as the data models of the objects evolve. Hard again. Gael

Re: [Scikit-learn-general] model persistence and sklearn version upgrades

2012-01-31 Thread David Warde-Farley
On Tue, Jan 31, 2012 at 10:57:50PM +0100, Andreas wrote: > That might be a stupid question, but what are the kinds of things that > break the models? > I imagine it would be things like renaming and removing attributes. What > else is there? > > Having code that says "Attribute A was called B in

Re: [Scikit-learn-general] GaussianProcess 'nugget'

2012-01-31 Thread Robert Kern
On Tue, Jan 31, 2012 at 20:44, Jacob VanderPlas wrote: > Hello, > I've been working on applying Gaussian Processes to noisy input data. > The scikit-learn docs are not especially helpful on this topic, but > after reading through some of the references and scanning the code, I > found that the key

Re: [Scikit-learn-general] model persistence and sklearn version upgrades

2012-01-31 Thread Robert Layton
On 1 February 2012 08:57, Andreas wrote: > That might be a stupid question, but what are the kinds of things that > break the models? > I imagine it would be things like renaming and removing attributes. What > else is there? > > Having code that says "Attribute A was called B in the last version

Re: [Scikit-learn-general] model persistence and sklearn version upgrades

2012-01-31 Thread Andreas
That might be a stupid question, but what are the kinds of things that break the models? I imagine it would be things like renaming and removing attributes. What else is there? Having code that says "Attribute A was called B in the last version and C in the one before that" seems not desirable

Re: [Scikit-learn-general] model persistence and sklearn version upgrades

2012-01-31 Thread Robert Layton
On 1 February 2012 06:19, Olivier Grisel wrote: > 2012/1/31 Jeff Farris : > > I'm currently using pickle to persist models (e.g. SVC). After > upgrading > > sklearn, these pickled models from a previous version of sklearn don't > tend > > to work and then I need to retrain. Is there some versi

[Scikit-learn-general] GaussianProcess 'nugget'

2012-01-31 Thread Jacob VanderPlas
Hello, I've been working on applying Gaussian Processes to noisy input data. The scikit-learn docs are not especially helpful on this topic, but after reading through some of the references and scanning the code, I found that the keyword 'nugget' in the initializer of GaussianProcess does esse

Re: [Scikit-learn-general] model persistence and sklearn version upgrades

2012-01-31 Thread Olivier Grisel
2012/1/31 Jeff Farris : > I'm currently using pickle to persist models (e.g. SVC).   After upgrading > sklearn, these pickled models from a previous version of sklearn don't tend > to work and then I need to retrain.  Is there some version independent way > of saving models  (e.g. libsvm model form

Re: [Scikit-learn-general] model persistence and sklearn version upgrades\

2012-01-31 Thread David Warde-Farley
On Tue, Jan 31, 2012 at 02:08:21PM -0500, Jeff Farris wrote: > I'm currently using pickle to persist models (e.g. SVC). After upgrading > sklearn, these pickled models from a previous version of sklearn don't tend > to work and then I need to retrain. Is there some version independent way > of s

[Scikit-learn-general] model persistence and sklearn version upgrades

2012-01-31 Thread Jeff Farris
I'm currently using pickle to persist models (e.g. SVC). After upgrading sklearn, these pickled models from a previous version of sklearn don't tend to work and then I need to retrain. Is there some version independent way of saving models (e.g. libsvm model format) or other recommendations on

Re: [Scikit-learn-general] Causes for one class dominating?

2012-01-31 Thread Michael Waskom
Hi Olivier, all After playing around some more, I may have a partial solution.  But I would appreciate it if you could help me check some assumptions. First, I realized that my original PCA did not make much sense.  What I want to do is reduce the feature dimensions in my classification, but keep

Re: [Scikit-learn-general] Bug in master

2012-01-31 Thread Gael Varoquaux
On Tue, Jan 31, 2012 at 05:05:53PM +0100, Lars Buitinck wrote: > I don't have a NumPy 2 installation and I haven't followed its > development closely. Could you open an issue for this? https://github.com/scikit-learn/scikit-learn/issues/600 I'll do better: I'll try to fix the problem when I get t

Re: [Scikit-learn-general] Bug in master

2012-01-31 Thread Lars Buitinck
2012/1/23 Gael Varoquaux : > On Sat, Jan 21, 2012 at 03:49:24PM +0100, Lars Buitinck wrote: >> This is very strange; I get no such error. > > I have numpy 2 (dev). The rules for strides in array creation have > changed. I don't have a NumPy 2 installation and I haven't followed its development clo