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

import CSV with missing data in pybrain sample

Can we use missing data in the sample for pybrain and can we import it from csv ? The C0m4's code is nice but for a full sample (link below). How to load training data in PyBrain? Is it possible for missing data sample ? And how to do that ? By what…
user3619937
  • 85
  • 2
  • 6
2
votes
0 answers

Why does Pybrain predict always the same value ?

I'm trying to use PyBrain for predicition, but my code's output gives my almost always the same prediction on a test set. Could anyone explain me why ? Thanks ! ## ----------------------- Data ---------------------------- ## import pandas as…
P. Colo
  • 21
  • 1
2
votes
1 answer

What does the error output from trainer.train() in PyBrain refer to?

What does the error printed from PyBrain Trainer.train() function refer to? More specifically, when I do this: >>> trainer = BackpropTrainer(fnn, ds_train) >>> trainer.train() 0.024 What does the number 0.024 mean? I am asking because when I train…
Troll_Hunter
  • 465
  • 2
  • 9
  • 15
2
votes
0 answers

pybrain datasets insert tuple

I use pybrain datasets and I want to add a list (or a tuple) of tuples as the input value of the items in the dataset. For example: from pybrain.datasets import ClassificationDataSet ds = ClassificationDataSet(2, 1,…
luthien
  • 1,285
  • 3
  • 15
  • 26
2
votes
1 answer

Pybrain: neural network for classification doesn't learn

I am trying to use pybrain to classify some inputs (made of 44 variables and the range is from -1 to +1) in 5 classes( from 0 to 4) but I have that the Total error is fixed to around 0.072 even if I change the network structure or I reduce the…
PSan
  • 129
  • 1
  • 3
  • 11
2
votes
0 answers

Huge training error with pybrain

This is my training function: def train(input_layer_data, output_layer_data, dnn, stn): ds = SupervisedDataSet(len(input_layer_data), len(output_layer_data)) ds.addSample(input_layer_data, output_layer_data) if 'network' in dnn[stn]: …
Satys
  • 2,319
  • 1
  • 20
  • 26
2
votes
1 answer

Python 2.7.9 PyBrain issue with SciPy

I just tried installing SciPy using scipy‑0.15.1‑cp27‑none‑win_amd64.whl I have Python 2.7.9 x64 installed I have wheel installed I have numpy installed I am working under Windows7 The log said that scipy has been successfully installed after…
Sparksmith
  • 113
  • 3
  • 8
2
votes
3 answers

How to install pybrain

I am attempting to install pybrains but I am getting this error: C:\Python34\python.exe "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 4.0.4\helpers\pycharm\pycharm_setup_runner.py"…
DJ Howarth
  • 562
  • 2
  • 12
  • 30
2
votes
0 answers

Pybrain predicting all 0's

For this dataset, the answers should be 2 and 4, but answers is all 0's. I tried also p = fnn.activateOnDataset(trndata) but that gave me a all nan's. I believe there is something not working with testOnClassData, but I'm not sure. Can anyone…
eternalmothra
  • 221
  • 3
  • 12
2
votes
0 answers

Can PyBrain determine the optimal network structure?

Is it possible to do a neural network topology optimization using PyBrain? For example with the Optimal Brain Surgeon or Optimal Brain Damage techniques?
arnoutaertgeerts
  • 2,232
  • 5
  • 29
  • 44
2
votes
1 answer

Python Libraries Adaptive Neuro-Fuzzy Inference System (ANFIS)

Are there any libraries that implement ANFIS (Python Libraries Adaptive Neuro-Fuzzy Inference System) in Python? Do libraries like PyBrain support it?
2
votes
1 answer

Bad regression output of neural network - an unwanted upper bound?

I am having a problem in a project which uses pybrain(a python library for neural network) to build an ANN and do regression as prediction. I am using 3-layer ANN, with 14 inputs, 10 hidden neurons in the hidden layer, and 2 outputs. A typical…
Missing
  • 23
  • 2
2
votes
0 answers

MemoryError in loading Pybrain SupervisedDataSet

I have training set of 2.4M data with 100K dimension. When I load the data into SupervisedDataSet using addSample(), it calls MemoryError with only 130K data loaded. Is there any method to load really big data onto SupervisedDataSet?
theincluder
  • 53
  • 1
  • 5
2
votes
2 answers

Saving neural network testing outputs in Pybrain

I made a supervised neural network with pybrain, it works great and when I test it with "trainer.testOnData(test_data, verbose=True)" I can see the output (and the error) but I would also like to save it for further analysis. I coudn't find how on…
2
votes
2 answers

PyBrain AssertionError when setting data for trainer

I am trying to set up a neural network in Python (using PyBrain) for prediction purposes. I already set one up with a small, mock dataset, but when expanding this network to work for larger datasets, I run into an issue regarding an AssertionError.…
user3847447
  • 1,291
  • 3
  • 11
  • 8