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
0
votes
1 answer

pybrain LSTM layer buffer variables

In pybrain LSTM layer there are these buffer that are used to store values. 'bufferlist': [ ('ingate', 20), ('outgate', 20), ('forgetgate', 20), ('ingatex', 20), …
dnth
  • 879
  • 2
  • 12
  • 22
0
votes
1 answer

Neural net with Pybrain will not converge

I am trying to build a simple neural network using Python and Pybrain package. As I am starting to learn both the method and Pybrain package. I tried to make a very simple neuralnet with some real data that I have available! I know there is an…
0
votes
1 answer

Pybrain validator functions

I came across ModuleValidator.MSE(net, trndata) and trainer.testOnData(dataset=trndata) In the documentation, it says both function output the mean squared error. But when I implement it on my network, both output is not the same as opposed to…
dnth
  • 879
  • 2
  • 12
  • 22
0
votes
1 answer

How to implement bi-directional LSTM network in pybrain

I am trying to implement a bidirectional LSTM network in pybrain. Anyone has any sample code as an example?
dnth
  • 879
  • 2
  • 12
  • 22
0
votes
1 answer

Why the average weight of rnn keeps climbing?

I'm using Pybrain to train a recurrent neural network. However, the average of the weights keeps climbing and after several iterations the train and test accuracy become lower. Now the highest performance on train data is about 55% and on test data…
csz-carrot
  • 265
  • 3
  • 12
0
votes
1 answer

How to save and recover PyBrain neural network?

I have created a simple pybrain neural network, what I want to do is save the training and learning data so that the neural network can continues learn. Here is my code. I can't figure out how to solve this problem. from pybrain.datasets import…
ben olsen
  • 663
  • 1
  • 14
  • 27
0
votes
0 answers

Creating a neural network: How do put a csv file inside the code?

I found this code online and I would like put my own csv data into the code. How do I to tell Python to put my csv file inside the code? About the text file I have to two CSV files Weather_1.csv and Weather_2.csv both files have 4 Variables…
ben olsen
  • 663
  • 1
  • 14
  • 27
0
votes
2 answers

What activation function to use or modifications to make when neural network gives same output on regression with PyBrain?

I have a neural network with one input, three hidden neurons and one output. I have 720 input and corresponding target values, 540 for training, 180 for testing. When I train my network using Logistic Sigmoid or Tan Sigmoid function, I get the same…
0
votes
0 answers

Error after PyBrain installation: "No module named pybrain.tools.shortcuts"

I have installed PyBrain using command prompt. How can I get it into use? I have Enthought Canopy as my Python environment, and I used import pybrain.tools.shortcuts, but I got the error "No module named pybrain.tools.shortcuts". What do I have to…
0
votes
1 answer

How is bias added to specific hidden layers of a Neural Network in PyBrain?

I have a Neural Network with two hidden layers. I want to add a bias unit only to the second hidden layer. How do I do that? The code for my network is as follows: nn = FeedForwardNetwork() inLayer = LinearLayer(numFeatures) hiddenLayer1 =…
Adarsh Chavakula
  • 1,509
  • 19
  • 28
0
votes
1 answer

Echo state prediction laziness

I am trying to use PyBrain for time series prediction by implementing this solution. The others produce large offsets. The problem is that although I have tried changing the learning rate, momentum, max training epochs, continue epochs, neuron…
mikael
  • 2,097
  • 3
  • 18
  • 24
0
votes
1 answer

How can I use PyBrain to train a simple linear function?

I've just tried PyBrain and hoped it could learn the simple linear function f(x) = 4x+1: # Build the network from pybrain.tools.shortcuts import buildNetwork net = buildNetwork(1, 2, 1, bias=True) # Add samples from pybrain.datasets import…
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
0
votes
1 answer

Creating a set of letters written in different fonts

I want to train my pyBrain network to recognise digits. They should be written in 16x16 bmp files. Since drawing manually 10 digits is not enough for machine to learn, how is it possible to generate a lot (20-40 each) of single digit files using…
RomaValcer
  • 2,786
  • 4
  • 19
  • 29
0
votes
1 answer

Which XML library is used for PyBrain?

I'm using PyBrain in a project over Windows 7 and I've had not problem with this library until I had to write the trained network to a XML file. I tried this "from pybrain.tools.xml.networkwriter import NetworkWriter" but I got an importation…
0
votes
1 answer

How to save to different pickles from same python program?

Im running multiple PyBrain training runs using the same program but with diff params and saving to a pickle file. How would i run the same program but save each instance to a different pickle (preferably without multithreading my program), so i…
jsky
  • 2,225
  • 5
  • 38
  • 54