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 neural network types.

Features:
  • 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, initialization and activation functions

  • Unlimited number of neural layers and number of neurons in layers

  • Variety of supported types of Artificial Neural Network and learning algorithms

Example:
>>> 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 = nl.net.newff([[-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]])
Links:

Project details


Download files

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

Source Distribution

neurolab-0.3.5.tar.gz (645.3 kB view details)

Uploaded Source

File details

Details for the file neurolab-0.3.5.tar.gz.

File metadata

  • Download URL: neurolab-0.3.5.tar.gz
  • Upload date:
  • Size: 645.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for neurolab-0.3.5.tar.gz
Algorithm Hash digest
SHA256 96ec311988383c63664f3325668f27c30561cf4349e3bc5420665c042a3b9191
MD5 3eedda67bacb6bf63ed8448ff5b790d5
BLAKE2b-256 46fd47a9a39158b461b6b862d64c0ad7f679b08ed6d316744299f0db89066342

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page