How slow is the generation of the data? Using a Theano fct could speed that
up.


On Thu, May 1, 2014 at 4:08 PM, Mehdi Mirza <notifications@github.com>wrote:

> In pylearn2/datasets/henonmap.py:
>
> > +        self.init_state = init_state
> > +
> > +        # Initialize RNG
> > +        if rng is None:
> > +            self.rng = np.random.RandomState(self._default_seed)
> > +        else:
> > +            self.rng = np.random.RandomState(rng)
> > +
> > +        # Load or save as specified
> > +        if (load_path is None):
> > +            (X, y) = self._generate_data()
> > +        else:
> > +            (X, y) = cPickle.load(open(load_path, 'rb'))
> > +
> > +        if (save_path is not None):
> > +            cPickle.dump((X, y), open(save_path, 'wb'))
>
> Better to use pylearn2.utils.serial.load and save for loading and dumping
> pickle files.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/lisa-lab/pylearn2/pull/866/files#r12204749>
> .
>