VOOZH about

URL: https://www.geeksforgeeks.org/python/pybrain-datasets-types/

⇱ PyBrain - Datasets Types - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

PyBrain - Datasets Types

Last Updated : 21 Feb, 2022

Datasets are useful for allowing comfortable access to training, test, and validation data. Instead of having to mangle with arrays, PyBrain gives you a more sophisticated data structure that allows easier work with your data.

DataSets In PyBrain

The most commonly used datasets that Pybrain supports are SupervisedDataSet and ClassificationDataSet.

SupervisedDataSet: It consists of fields of input and target. It is the simplest form of a dataset and is mainly used for supervised learning tasks. As the name says, this simplest form of a dataset is meant to be used with supervised learning tasks. It is comprised of the fields ‘input’ and ‘target’, the pattern size of which must be set upon creation:

Output:

👁 Image

ClassificationDataSet: It is mainly used to deal with classification problems. It takes in input, target field, and also an extra field called "class" which is an automated backup of the targets given. For example, the output will be either 1 or 0, or the output will be grouped together with values based on input given, i.e., either it will fall in one particular class.

Output:

Total error: 0.0892390931641
Total error: 0.0821479733597
Total error: 0.0759327938967
Total error: 0.0722385583142
Total error: 0.0690818068826
Total error: 0.0667645311923
Total error: 0.0647079622731
Total error: 0.0630345245312
Total error: 0.0608030839912
Total error: 0.0595356750412
Total error: 0.0586635639408
Total error: 0.0573043661487
Total error: 0.0559188704413
Total error: 0.0548155819544
Total error: 0.0535537679931
Total error: 0.0527051106108
Total error: 0.0515783629912
Total error: 0.0501025301423
Total error: 0.0499123823243
Total error: 0.0482250742606
Error percentage on testing data=> 20.0
Comment
Article Tags: