Skip to main content

scikit-learn compatible neural network library

Project description

nolearn contains a number of wrappers and abstractions around existing neural network libraries, most notably Lasagne, along with a few machine learning utility modules. All code is written to be compatible with scikit-learn.


We recommend using venv (when using Python 3) or virtualenv (Python 2) to install nolearn.

To install the latest release of nolearn from the Python Package Index, do:

pip install nolearn

At the time of this writing, nolearn works with the latest versions of its dependencies, such as numpy, scipy, Theano, and Lasagne (the latter from Git). But we also maintain a list of known good versions of dependencies that we support and test. Should you run into hairy depdendency issues during installation or runtime, we recommend you try this same set of tested depdencencies instead:

pip install -r
pip install nolearn

If you want to install the latest development version of nolearn directly from Git, run:

pip install -r
pip install git+


If you’re looking for how to use nolearn.lasagne, then there’s two introductory tutorials that you can choose from:

For specifics around classes and functions out of the lasagne package, such as layers, updates, and nonlinearities, you’ll want to look at the Lasagne project’s documentation.

nolearn.lasagne comes with a number of tests that demonstrate some of the more advanced features, such as networks with merge layers, and networks with multiple inputs.

nolearn’s own documentation is somewhat out of date at this point. But there’s more resources online.

Finally, there’s a few presentations and examples from around the web. Note that some of these might need a specific version of nolearn and Lasange to run:


If you’re seeing a bug with nolearn, please submit a bug report to the nolearn issue tracker. Make sure to include information such as:

  • how to reproduce the error: show us how to trigger the bug using a minimal example
  • what versions you are using: include the Git revision and/or version of nolearn (and possibly Lasagne) that you’re using

Please also make sure to search the issue tracker to see if your issue has been encountered before or fixed.

If you believe that you’re seeing an issue with Lasagne, which is a different software project, please use the Lasagne issue tracker instead.

There’s currently no user mailing list for nolearn. However, if you have a question related to Lasagne, you might want to try the Lasagne users list, or use Stack Overflow. Please refrain from contacting the authors for non-commercial support requests directly; public forums are the right place for these.


Citations are welcome:

Daniel Nouri. 2014. nolearn: scikit-learn compatible neural network library


See the LICENSE.txt file for license rights and limitations (MIT).

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nolearn, version 0.6.0
Filename, size File type Python version Upload date Hashes
Filename, size nolearn-0.6.0.tar.gz (320.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page