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

What is `target` in `ClassificationDataSet` good for?

I've tried to find out what the parameter target of ClassificationDataSet can be used for, but I'm still not clear about that. What I've tried >>> from pybrain.datasets import ClassificationDataSet >>> help(ClassificationDataSet) Help on class…
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
2
votes
1 answer

I get a PyBrain BackpropTrainer AssertionError on Windows 7, which requirement is missin?

I initialized ds = SupervisedDataSet(12288,1) and add data ds.appendLinked(im3.flatten(),10) where im3 is an openCV picture. and this is my trainer -> trainer = BackpropTrainer(red, ds) When the running process reach BackpropTrainer, i get an…
2
votes
4 answers

PyBrain Reinforcement Learning Input Buffer Incorrect

I am trying to set up PyBrain for reinforcement learning, but keep on getting the same error when I try to get an action for the first time. This line in module.py is throwing an assert failure because the input buffer on the ActionValueTable (a…
amauboussin
  • 463
  • 1
  • 3
  • 11
2
votes
1 answer

What is the network size limit in PyBrain?

I have recently constructed a neural network in PyBrain, but ran in to a problem of my network being to big. So what are the exact limits in PyBrain? How can I construct a network with 750000 inputs, 3 outputs and a working ammount of hidden…
2
votes
0 answers

Unable to set up Pybrain LSTM module for Reber Grammar

I'm trying to use Pybrain to predict sequences of characters belonging to the Reber grammar. Concretely what I'm doing is generating strings using the Reber grammar graph (you can check it here : http://www.felixgers.de/papers/phd.pdf page 22). An…
user3091275
  • 1,013
  • 2
  • 11
  • 27
2
votes
1 answer

How to build a neural network with pybrain?

I am new to pybrain and I am having a lot of problem in building a neural network. The documentation is not very clear to me and I did not find a lot of examples in the web. I would like a neural network with one input, 1 hidden layer, 1 output.…
Donbeo
  • 17,067
  • 37
  • 114
  • 188
2
votes
1 answer

PyBrain multiple target values

I'm trying to train ANN to predict probabilities of an image belonging to a several number of classes, and my target values are sets of such probabilities. Input is simple reshaped 28x28 grayscale pictures with pixel values from 0-255. One 'target'…
2
votes
1 answer

Having some troubles with the PyBrain Neural Network regression function

I would appreciate a some insights into the workings of the PyBrain's neural network. I have a dataset of different household features that correspond to a certain household income. The task is to create a regression based on neural networks to be…
d56
  • 825
  • 1
  • 9
  • 26
2
votes
0 answers

How to do multidimentional time-series prediction in PyBrain?

this is a repost from the PyBrain google group: https://groups.google.com/forum/#!topic/pybrain/J9qv0nHuxVY. I've been tinkering with OpenNN and FANN and have yet to find an ANN library that does what I need. I'll break this up into short-term and…
b..
  • 281
  • 3
  • 19
2
votes
0 answers

Pybrain regression is not converging to reasonable values

I am a beginner to PyBrain (and fairly new to ANN's), so to familiarize with using PyBrain I have tried to train on a sin function. My outputs have been making little sense --- for each data point I get an output of 0, -0, or some fixed real number…
2
votes
1 answer

PyBrain - how to validate my trained network against a test data?

So I have a ClassificationDataSet in PyBrain which I have trained with the appropriate data. Namely, the input is the…
2
votes
1 answer

Unexpected LSTM layer output in PyBrain

I am using an LSTM layer to multiplex among several memory cells. That said, having several input options, I want to feed only one of them to the hidden layer. I arranged the input to LSTM in such a way, so it would select an apropriate cell based…
user1048677
  • 229
  • 3
  • 13
2
votes
1 answer

Pybrain Feedforward neural network training error completely stuck

Hey guys I need a bit of help with my pybrain code. Everything loads fine, but after it trains the first time the training error doesn't go down. In fact, it just stays stuck there at exactly 13.3484055174. I've been checking my code many times and…
Shinjitsu
  • 639
  • 3
  • 10
  • 23
2
votes
1 answer

Pybrain neural network step transfer function

can someone show me how to implement a step activation function in pybrain ? eg. def stepActivationFunction(n): if n > 0.5: return 1. else: return 0. I can't seem to find any implementation in pybrain.structure.modules ? Thanks EDIT I…
Sherlock
  • 5,557
  • 6
  • 50
  • 78
2
votes
1 answer

Neural network reporting the same response for different activations

I wrote this simple test of Pybrain neural networks, but it doesn't act like I expect it to. The idea is to train it on a dataset of numbers up to 4095, with a class for prime and non-prime. #!/usr/bin/env python # A simple feedforward neural…
lambda
  • 133
  • 1
  • 6