Skip to main content

Simple and powerfull neural network library for python

Project description

Neurolab is a simple and powerful Neural Network Library for Python. Contains based neural networks, train algorithms and flexible framework to create and explore other networks.

  • Pure python + numpy
  • API like Neural Network Toolbox (NNT) from MATLAB
  • Interface to use train algorithms form scipy.optimize
  • Flexible network configurations and learning algorithms. You may change: train, error, initializetion and activation functions
  • Variety of supported types of Artificial Neural Network and learning algorithms
>>> import numpy as np
>>> import neurolab as nl
>>> # Create train samples
>>> input = np.random.uniform(-0.5, 0.5, (10, 2))
>>> target = (input[:, 0] + input[:, 1]).reshape(10, 1)
>>> # Create network with 2 inputs, 5 neurons in input layer and 1 in output layer
>>> net =[[-0.5, 0.5], [-0.5, 0.5]], [5, 1])
>>> # Train process
>>> err = net.train(input, target, show=15)
Epoch: 15; Error: 0.150308402918;
Epoch: 30; Error: 0.072265865089;
Epoch: 45; Error: 0.016931355131;
The goal of learning is reached
>>> # Test
>>> net.sim([[0.2, 0.1]]) # 0.2 + 0.1
array([[ 0.28757596]])
Now support neural networks types:
Single layer perceptron
Multilayer feed forward perceptron
Competing layer (Kohonen Layer)
Learning Vector Quantization (LVQ)

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 neurolab, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size (1.2 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page