views:

587

answers:

3

I wonder if anyone has some example code of a Neural network in python. If someone know of some sort of tutorial with a complete walkthrough that would be awesome, but just example source would be great as well!

Thanks

+3  A: 

Here is a simple example by Armin Rigo: http://codespeak.net/pypy/dist/demo/bpnn.py. If you want to use more sophisticated stuff, there is also http://pybrain.org.

bayer
+2  A: 

Take a look at Learning from Clicks from the book Programming Collective Intelligence.

J.F. Sebastian
+1  A: 

You might want to take a look at Monte:

Monte (python) is a Python framework for building gradient based learning machines, like neural networks, conditional random fields, logistic regression, etc. Monte contains modules (that hold parameters, a cost-function and a gradient-function) and trainers (that can adapt a module's parameters by minimizing its cost-function on training data).

Modules are usually composed of other modules, which can in turn contain other modules, etc. Gradients of decomposable systems like these can be computed with back-propagation.

Jukka Matilainen