Re: [Tutor] PyBrain: Question on creating customized DataSet

2015-03-18 Thread Alan Gauld

On 18/03/15 02:15, prudhvi nethi wrote:

Hi,

I'm trying to create a data set for using it with BackpropTrainer
*(PyBrain)*


Your question seems to be about pybrain rather than about Python.

There is a pybrain google group:

http://groups.google.com/group/pybrain

and a general email link

cont...@pybrain.org

You will probably get more specific help there.


The model is that i have a bunch of inputs (which can have multiple
values). Resulting in some Output Kx( different values).

Sample data ( A subset of the data )

Input (x)
Input (y)
Input (z)
Input(a)
Output(k)

X1
Y1
Z1
A1
K1
X1

...

Where Input x can have any of the following value in a specific entry:
(X1,X2,x2)

*An example from PyBrain Documentation for a simple XOR data set modeling:*


ds.addSample((0, 0), (0,))>>> ds.addSample((0, 1), (1,))>>> ds.addSample((1, 0), 
(1,))>>> ds.addSample((1, 1), (0,))


I'm afraid that's making no sense to me whatsoever.
Maybe someone else can decipher it.
But I suggest you try the pybrain community.


--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] PyBrain: Question on creating customized DataSet

2015-03-18 Thread prudhvi nethi
Hi,

I'm trying to create a data set for using it with BackpropTrainer
*(PyBrain)*

The model is that i have a bunch of inputs (which can have multiple
values). Resulting in some Output Kx( different values).

Sample data ( A subset of the data )

 Input (x)

Input (y)

Input (z)

Input(a)

Output(k)

X1

Y1

Z1

A1

K1

X1

Y2

Z2

A3

K2

X2

Y3

Z2

A2

K1





Where Input x can have any of the following value in a specific entry:
(X1,X2,x2)



*An example from PyBrain Documentation for a simple XOR data set modeling:*


>>> ds.addSample((0, 0), (0,))>>> ds.addSample((0, 1), (1,))>>> 
>>> ds.addSample((1, 0), (1,))>>> ds.addSample((1, 1), (0,))


As the function is simple here (XOR) and the inputs and o/p's can be
represented in binary format. How can i model a data set for a slightly
complex like mine ?

*Please let me know if i mis-speak or interpret something here.*

-Prudhvi
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor