Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zueve/neurolab
Neurolab is a simple and powerful Neural Network Library for Python
https://github.com/zueve/neurolab
Last synced: 3 months ago
JSON representation
Neurolab is a simple and powerful Neural Network Library for Python
- Host: GitHub
- URL: https://github.com/zueve/neurolab
- Owner: zueve
- Created: 2015-03-16T11:34:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-06-02T20:10:15.000Z (over 4 years ago)
- Last Synced: 2024-05-13T12:33:46.396Z (6 months ago)
- Language: Python
- Homepage:
- Size: 375 KB
- Stars: 161
- Watchers: 22
- Forks: 41
- Open Issues: 14
-
Metadata Files:
- Readme: README
- Changelog: CHANGELOG
Awesome Lists containing this project
- awesome-python-machine-learning - neurolab - 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. (Uncategorized / Uncategorized)
README
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, initializetion 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:
- `Home Page `_
- `PyPI Page `_
- `Documentation `_
- `Examples `_:Install:
Install *neurolab* using setuptools/distribute::
easy_install neurolab
Or pip::
pip install neurolab
Or, if you don't have setuptools/distribute installed,
use the download `link `_
at right to download the source package,
and install it in the normal fashion: Ungzip and untar the source package,
cd to the new directory, and::python setup.py install