Skip to content

Commit

Permalink
Improve README
Browse files Browse the repository at this point in the history
  • Loading branch information
dnouri committed May 30, 2015
1 parent 62017df commit 4e8b980
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 16 deletions.
109 changes: 95 additions & 14 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,20 +1,101 @@
nolearn contains a number of wrappers around existing neural network
libraries, along with a few machine learning utility modules. Most
functionality is written to be compatible with the the excellent
`scikit-learn <http://scikit-learn.org/>`_ library.
*nolearn* contains a number of wrappers and abstractions around
existing neural network libraries, most notably `Lasagne
<http://lasagne.readthedocs.org/>`_, along with a few machine learning
utility modules. All code is written to be compatible with
`scikit-learn <http://scikit-learn.org/>`_.

View the `documentation here <http://packages.python.org/nolearn/>`_.
.. image:: https://travis-ci.org/dnouri/nolearn.svg?branch=master
:target: https://travis-ci.org/dnouri/nolearn

When installing nolearn, it is recommended to use the requirements.txt
file included in the source. To install the requirements for the most
recent version of nolearn from Git, you would run::
Installation
============

pip install -r https://raw.githubusercontent.com/dnouri/nolearn/master/requirements.txt
To use the latest version of *nolearn* from Git, use these commands to
get a copy from Github and install all dependencies::

nolearn includes a popular wrapper around the `Lasagne neural networks
library <https://github.com/Lasagne/Lasagne>`_. An extensive
`tutorial showing how to use Lasagne through nolearn to detect facial
keypoints is available here
git clone [email protected]:dnouri/nolearn.git
cd nolearn
pip install -r requirements.txt
python setup.py develop

You probably want to use `virtualenv <https://virtualenv.pypa.io>`_
when installing nolearn.

Should you ever update your Git checkout (i.e. with ``git pull``),
make sure to re-run the ``pip install -r requirements.txt`` step
again.

A somewhat old version of nolearn is available on `PyPI
<https://pypi.python.org/pypi/nolearn>`_ and can be installed with
*pip*.

Documentation
=============

View the `nolearn documentation here
<http://packages.python.org/nolearn/>`_.

Documentation for *nolearn.lasagne* is unfortunately lacking at this
point, but we'll hopefully improve this soon. However, If you're
looking for specifics around classes and functions out of the
*lasagne* package, such as layers, updates, and nonlinearities, then
you'll want to look at `Lasagne's documentation
<http://lasagne.readthedocs.org/>`_.

An extensive tutorial that introduces the basic concepts of
*nolearn.lasagne* and uses it to train a model that detects facial
keypoints is `available here
<http://danielnouri.org/notes/2014/12/17/using-convolutional-neural-nets-to-detect-facial-keypoints-tutorial/>`_.
The `code for the tutorial is also available
The code for the tutorial is `also available
<https://github.com/dnouri/kfkd-tutorial>`_.

*nolearn.lasagne* comes with a `number of tests
<https://github.com/dnouri/nolearn/tree/master/nolearn/lasagne/tests>`_
that demonstrate some of the more advanced features, such as networks
with merge layers, and networks with multiple inputs.

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

- Oliver Dürr's `Convolutional Neural Nets II Hands On
<https://home.zhaw.ch/~dueo/bbs/files/ConvNets_24_April.pdf>`_

- Benjamin Bossan's `Otto Group Product Classification Challenge
using nolearn/lasagne
<https://github.com/ottogroup/kaggle/blob/master/Otto_Group_Competition.ipynb>`_

- Kaggle's `instructions on how to set up an AWS GPU instance to run
nolearn.lasagne
<https://www.kaggle.com/c/facial-keypoints-detection/details/deep-learning-tutorial>`_
and the facial keypoint detection tutorial

- `An example convolutional autoencoder
<https://github.com/mikesj-public/convolutional_autoencoder/blob/master/mnist_conv_autoencode.ipynb>`_

Support
=======

If you're seeing a bug with nolearn, please submit a bug report to the
`nolearn issue tracker <https://github.com/dnouri/nolearn/issues>`_.
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
<https://github.com/Lasagne/Lasagne/issues>`_ 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 <https://groups.google.com/d/forum/lasagne-users>`_, or use
Stack Overflow. Please refrain from contacting the authors for
non-commercial support requests directly; public forums are the right
place for these.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@

setup(name='nolearn',
version=version,
description="scikit-learn compatible wrappers for neural net libraries, "
"and other utilities.",
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.",
long_description='\n\n'.join([README, CHANGES]),
classifiers=[
"Development Status :: 4 - Beta",
Expand Down

0 comments on commit 4e8b980

Please sign in to comment.