neurolab's Introduction
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 <http://code.google.com/p/neurolab/>`_ - `PyPI Page <http://pypi.python.org/pypi/neurolab>`_ - `Documentation <http://packages.python.org/neurolab/>`_ - `Examples <http://packages.python.org/neurolab/example.html>`_ :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 <http://code.google.com/p/neurolab/downloads/list>`_ 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
neurolab's People
neurolab's Issues
little issue with net.py
Hi,
There is a little issue when using "net.py" and more precisly when using the "newlvq.py" we get this error:
Traceback (most recent call last):
File ".\main.py", line 26, in
net = nl.net.newlvq(nl.tool.minmax(input), 4, [0.4, 0.6])
File "C:\Users\yacine.virtualenvs\lab_uqac\lib\site-packages\neurolab\net.py", line 181, in newlvq
layer_out.np['w'][n][st:i].fill(1.0)
TypeError: slice indices must be integers or None or have an index method
This issue can be solved by converting the variables "st" and "i" to int in the function "newlvq" in the file "net.py".
Yacine.
Is it thread safe?
Hi!
Amazing package! Helped me a lot, so thank you very much.
Could you please tell me if this package is thread-safe?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.