Questions tagged [pybrain]

PyBrain is an open source machine-learning library for python. It supports a wide range of optimisation techniques, neural networks, reinforcement learning and more.

PyBrain is a machine learning library that can be used by entry-level students but offers the flexibility and algorithms for state-of-the-art research.

For more information, see the PyBrain homepage

310 questions
113
votes
17 answers

ImportError: No module named scipy

I am using Python 2.7 and trying to get PyBrain to work. But I get this error even though scipy is installed - Traceback (most recent call last): File "", line 1, in File…
ihmpall
  • 1,358
  • 2
  • 13
  • 17
55
votes
3 answers

Meaning of an Epoch in Neural Networks Training

while I'm reading in how to build ANN in pybrain, they say: Train the network for some epochs. Usually you would set something like 5 here, trainer.trainEpochs( 1 ) I looked for what is that mean , then I conclude that we use an epoch of data…
user2162652
33
votes
3 answers

How to save and recover PyBrain training?

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?
solartic
  • 4,249
  • 3
  • 25
  • 26
32
votes
4 answers

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 buildNetwork from pybrain.structure.modules import…
avanwieringen
  • 2,404
  • 3
  • 21
  • 28
29
votes
2 answers

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) python in order to predict the next value of a sequence ? (I've read the pybrain documentation and there is no clear example for it I think.) I also found this…
Olivier_s_j
  • 5,490
  • 24
  • 80
  • 126
25
votes
2 answers

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 is the way to create fully connected layers, which…
Boris Gorelik
  • 29,945
  • 39
  • 128
  • 170
20
votes
1 answer

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 confused by the optimization algorithms and the…
david_adler
  • 9,690
  • 6
  • 57
  • 97
18
votes
1 answer

PyBrain - how to do Deep belief network training?

I have some difficulty training a DBN using Pybrain. First I tried to do it the simple way: net = buildNetwork(*layerDims) I faced this problem: How to do supervised deepbelief training in PyBrain? , and the suggested solution just led to another…
Ellie
  • 181
  • 7
17
votes
6 answers

AttributeError using pyBrain _splitWithPortion - object type changed?

I'm testing out pybrain following the basic classification tutorial here and a different take on it with some more realistic data here. However I receive this error when applying trndata._convertToOneOfMany() with the error: AttributeError:…
iammarkhammond
  • 191
  • 3
  • 9
16
votes
0 answers

Are there any decent PyBrain tutorials out there?

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 what one wishes to do. Is there any resource for…
Aaron Tp
  • 353
  • 1
  • 3
  • 12
15
votes
3 answers

Pybrain time series prediction using LSTM recurrent nets

I have a question in mind which relates to the usage of pybrain to do regression of a time series. I plan to use the LSTM layer in pybrain to train and predict a time series. I found an example code here in the link below Request for example:…
dnth
  • 879
  • 2
  • 12
  • 22
14
votes
0 answers

pybrain neural network not learning

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 distance from the food. The inputs are two sensor…
desophos
  • 207
  • 1
  • 9
12
votes
1 answer

Prediction using Recurrent Neural Network on Time series dataset

Description Given a dataset that has 10 sequences - a sequence corresponds to a day of stock value recordings - where each constitutes 50 sample recordings of stock values that are separated by 5 minute intervals starting from the morning or 9:05…
IssamLaradji
  • 6,637
  • 8
  • 43
  • 68
11
votes
3 answers

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 somewhere else that will use it. I need a way to…
Dr Sokoban
  • 1,638
  • 4
  • 20
  • 34
11
votes
1 answer

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 array(892*8). 7 fields are my features and 1 field is my…
1
2 3
20 21