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

Anaconda - I have set up an environment, how do I use it?

I have set up an environment in anaconda and installed additional packages in it (mainly pybrain). How can I access the environment's modules and packages? Can those be imported from a python script? If so, how? I searched the documentation but did…
Lucas
  • 165
  • 1
  • 6
3
votes
1 answer

How to use LSTM for sequence labelling in python?

I want to build a classifier that provides labels given a time series of vectors. I have the code for a static LSTM-based classifier, but I don't know how I can incorporate the time information: Training set: time = [1, 2, 3, 4, 5, 6, 7, 8, 9,…
user2212461
  • 3,105
  • 8
  • 49
  • 87
3
votes
1 answer

Python: What Does train() Method in Pybrain Package Return?

The link here says that trainer.train() returns a double proportional to the error What does that mean? I am using BackpropTrainer to train a neural network for classification. So far, my code has returned values less than 1. Does it mean that it…
dc95
  • 1,319
  • 1
  • 22
  • 44
3
votes
0 answers

How to deal with data not fitting into memory in pybrain

I have training set consisting of ~2k 300x400 pxs greyscale images. Whole collection has size ~20 Mb. I'm trying to classify these images with pybrain neural net. The problem is when I'm loading the dataset SupervisedDataSet my small python script…
milo
  • 1,220
  • 3
  • 17
  • 33
3
votes
1 answer

pybrain black box optimization custom optimizer simulated annealing

I am having trouble parsing pybrains documentation on their blackbox optimization. I am looking to input my own nn weight optimizer function. Pybrain has GA and hill climbing already implemented. I am unable to copy their format, for example…
user1620461
  • 173
  • 1
  • 7
3
votes
1 answer

Pybrain neural network: _convertToOneOfMany error

I am new to Pybrain and trying to put together a neural network. First, I came across the error described here: AttributeError: 'SupervisedDataSet' object has no attribute '_convertToOneOfMany' I tried the workaround described in the accepted…
Alex
  • 39
  • 5
3
votes
5 answers

How to install pybrain?

I downloaded pybrain using git $ git clone git://github.com/pybrain/pybrain.git and when I tried to install, $ python setup.py install it caused error on installing scipy: Running scipy-0.14.0/setup.py -q bdist_egg --dist-dir…
godot
  • 3,422
  • 6
  • 25
  • 42
3
votes
1 answer

How can I use a Matrix as a dataset on PyBran?

I´m using pybrain in order to train a simple neural network in which the input is going to be a 7x5 Matrix. The following are the inputs: A = [[0, 0, 1, 0, 0], [0, 1, 1, 0, 0], [0, 1, 0, 1, 0], [0, 1, 0, 1, 0], [1, 1, 1, 1, 1], …
Pablo Estrada
  • 3,182
  • 4
  • 30
  • 74
3
votes
3 answers

How to implement regularization in pybrain

Anyone can give a sample coding of implementing regularization technique in pybrain? I am trying to prevent overfitting in my data and currently looking for a method like early stopping, etc to do so. Thanks!
dnth
  • 879
  • 2
  • 12
  • 22
3
votes
1 answer

PyBrain neural network for stock prediction won't learn

I am trying to code a neural network that can forecast some data. Therefore I use PyBrain for python. I figured out that a SupervisedDataset would be a good fit for this task. I took some stock data and put 5 values from it as input and the sixths…
Gizmo
  • 871
  • 1
  • 15
  • 38
3
votes
1 answer

pybrain LSTM sequence to predict sequential data

I have written a simple code using pybrain to predict a simple sequential data. For example a sequence of 0,1,2,3,4 will supposed to get an output of 5 from the network. The dataset specifies the remaining sequence. Below are my codes…
dnth
  • 879
  • 2
  • 12
  • 22
3
votes
2 answers

how to plot byprain neural network structure

I am using pybrain to build neural network. Sometimes a graphical representation of the situation would be very useful. Is it possible to plot the structure of a neural network generated using pybrain?
Donbeo
  • 17,067
  • 37
  • 114
  • 188
3
votes
1 answer

Pybrain: Custom error/performance functions?

I have built a simple recurrent neural network that predicts a very noisy signal from a series of 15 inputs (statistical breakdowns of the signal). From what I can tell in the pybrain source (pybrain\supervised\trainers\backprop.py), the error…
COOLZXxX
  • 356
  • 2
  • 11
3
votes
1 answer

AttributeError: 'NoneType' object has no attribute 'indim'

I'm working with the package 'pybrain' and trying to build a neural network that will recognize images. The part of analyzing the photo is working very well, but as one who is new to pybrain- I'm not used to working with it. Somehow I keep getting…
user2129468
  • 681
  • 3
  • 8
  • 12
3
votes
1 answer

Outputs always equal in a network trained with pybrain to approximate a function

Using the code below: tf = open('defl_07h.csv','r') for line in tf.readlines(): data = [float(x) for x in line.strip().split(';') if x != ''] indata = tuple(data[:1]) outdata = tuple(data[1:]) ds.addSample(indata,outdata) net =…