lisa-lab / pylearn2

Warning: This project does not have any current developer. See bellow.
BSD 3-Clause "New" or "Revised" License
2.75k stars 1.09k forks source link

Make all tutorials into unit tests #371

Closed lamblin closed 10 years ago

lamblin commented 11 years ago

All tutorials in pylearn2/scripts/tutorials should not get broken, and be updated when the interface changes or things get deprecated.

Here is the status of current tutorials:

For test_convnet.py, I copied and pasted the YAML code in convolutional_network.ipynb, changing a few things to make it run in a reasonable amount of time. It would be better to have the string be a template, and use Python formatting to fill in the value of hyper-parameters. If the .ipynb file can import that template string from an external file, that would be even better, since it would avoid duplicating it.

memimo commented 11 years ago

Perhaps we should make unit tests for scripts/papers too. Currently maxout/cifar10.yaml is broken.

nouiz commented 11 years ago

That is a good idea. But what is the run time of them?

On Tue, Jun 25, 2013 at 9:57 AM, Mehdi Mirza notifications@github.comwrote:

Perhaps we should make unit tests for scripts/papers too. Currently maxout/cifar10.yaml is broken.

— Reply to this email directly or view it on GitHubhttps://github.com/lisa-lab/pylearn2/issues/371#issuecomment-19977634 .