PyBrain is an open source machine-learning library for python. It supports a wide range of optimisation techniques, neural networks, reinforcement learning and more.
10
votes
1answer
1k views
Creating custom connectivity in PyBrain neural networks
I want to create an artificial neural network (in PyBrain) that follows the following layout:
However, I cannot find the proper way to achieve this. The only option that I see in the documentation ...
10
votes
0answers
451 views
pybrain neural network not learning [closed]
I'm using pybrain to build an agent that learns chemotaxis (moving toward food based on a chemical signal). The agent is represented by a neural network, which should adjust its weights based on its ...
9
votes
1answer
3k views
How to save and recover PyBrain traning?
Is there a way to save and recover a trained Neural Network in PyBrain, so that I don't have to retrain it each time I run the script?
8
votes
1answer
882 views
No. of hidden layers, units in hidden layers and epochs till Neural Network starts behaving acceptable on Training data
I am trying to solve this Kaggle Problem using Neural Networks. I am using Pybrain Python Library.
It's a classical supervised Learning Problem. In following code: 'data' variable is numpy ...
7
votes
1answer
474 views
Request for example: Recurrent neural network for predicting next value in a sequence
Can anyone give me a practicale example of a recurrent neural network in pybrain in order to predict the next value of a sequence ?
I've read the documentation and there is no clear example for it I ...
6
votes
1answer
1k views
Neural Network training with PyBrain won't converge
I have the following code, from the PyBrain tutorial:
from pybrain.datasets import SupervisedDataSet
from pybrain.supervised.trainers import BackpropTrainer
from pybrain.tools.shortcuts import ...
6
votes
2answers
2k views
Genetic algorithm example/tutorial for PyBrain?
I have recently started using pyBrain to conduct some machine learning research. I am interested in GAs as well as ANNs - however despit the fact that the pyBrain homepage lists GA as one of the ...
6
votes
0answers
772 views
Are there any decent PyBrain tutorials out there? [closed]
So, PyBrain definitely seems like it has a lot of great tools and functionality(s) to be used. Sadly, it's documentation/'tutorial' is....very........weaK? And it is very hard to determine how to do ...
5
votes
1answer
976 views
How can I calculate or monitor the training of a neural network in pybrain?
I have a neural network n pybrain,with two inputs,a hidden layer and a output layer.I use the following to train:
trainer = BackpropTrainer(net,ds)
trainer.trainUntilConvergence()
net is the neural ...
4
votes
3answers
1k views
pybrain: how to print a network (nodes and weights)
finally I managed to train a network from a file :) Now I want to print the nodes and the weights, especially the weights, because I want to train the network with pybrain and then implement a NN ...
4
votes
1answer
411 views
How to train a neural network to supervised data set using pybrain black-box optimization?
I have played around a bit with pybrain and understand how to generate neural networks with custom architectures and train them to supervised data sets using backpropagation algorithm.
However I am ...
3
votes
1answer
2k views
How to load training data in PyBrain?
I am trying to use PyBrain for some simple NN training. What I don't know how to do is to load the training data from a file. It is not explained in their website anywhere. I don't care about the ...
3
votes
1answer
2k views
PyBrain: Loading data with numpy.loadtxt?
I have some working code which correctly loads data from a csv file into a PyBrain Dataset:
def old_get_dataset():
reader = csv.reader(open('test.csv', 'rb'))
header = reader.next()
...
3
votes
1answer
390 views
PyBrain neuron manipulation
Is there a good way to add/remove a neuron and its associated connections into/from a fully connected PyBrain network? Say I start with:
from pybrain.tools.shortcuts import buildNetwork
net = ...
3
votes
1answer
305 views
how to give input to a trained and tested PyBrain network and how to get the result
I am predicting a value, I have 2 input layer and an output layer. Here is my code in which I have trained a PyBrain network and then tested it, I am missing how should I give a set of input to the ...