Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Neural Networks inputs and output maniuplation

Subject: Neural Networks inputs and output maniuplation

From: MOOON MOOON

Date: 18 Dec, 2011 20:08:08

Message: 1 of 2


Hello,

Assume I have this matrix, A :
A=[ 25 11 2010 10 23 75
      30 11 2010 11 24 45
      31 12 2010 19 24 44
      31 12 2010 22 27 32
       1 1 2011 14 27 27
       2 12 2011 15 28 30
       3 12 2011 16 24 42 ];

 The first 5 columns represent the inputs of some measured parameters

and the last column is the corresponding output. The number of rows is the number

of taking these measurements.

I want to use Matlab Neural network GRNN with the function newgrnn

( or any other NN function )

to train the data up to the 5th row and test the remaining 2 rows inputs

to evaluate their corresponding outputs.

I have tried many many times to do this but it always gives me error

and the program did not run correctly.

I have looked to newgrnn help example but it is only for one input

while I have in this example 5 inputs.

My question is how do we put the inputs and the output in the newgrnn

function structure. Actually, I have very large matrix with 22 inputs

and one output and the size of my matrix is 26352 by 23

but the above is only sample example.

Regatds

Subject: Neural Networks inputs and output maniuplation

From: Greg Heath

Date: 19 Dec, 2011 04:15:33

Message: 2 of 2

On Dec 18, 3:08 pm, "MOOON MOOON" <shaheed...@yahoo.com> wrote:
> Hello,
>
> Assume I have this matrix, A :
> A=[ 25     11   2010    10  23  75
>       30     11   2010    11  24  45
>       31     12   2010    19  24  44
>       31     12   2010    22  27  32
>        1      1    2011    14  27  27
>        2      12   2011    15  28  30
>        3      12   2011    16  24  42 ];
>
>  The first 5 columns represent the inputs of some measured parameters
>
> and the last column is the corresponding output. The number of rows is the number
>
> of taking these measurements.
>
> I want to use Matlab Neural network GRNN with the function newgrnn
>
> ( or any other NN function )
>
> to train the data up to the 5th row and test the remaining 2 rows inputs
>
> to evaluate their corresponding outputs.
>
> I have tried many many times to do this but it always gives me error
>
> and the program did not run correctly.
>
> I have looked to newgrnn help example but it is only for one input
>
> while I have in this example 5 inputs.
>
> My question is how do we put the inputs and the output in the newgrnn
>
> function structure. Actually, I have very large matrix with 22 inputs
>
> and one output and the size of my matrix is 26352 by 23
>
> but the above is only sample example.
>
> Regatds

All of the neural network algorithms have the same format.

For training with N I-dimensional input column vectors and
the N corresponding O-dimensional target output column vectors

size(p) = [ I N ]
size(t) = [ O N]

Hope this helps.

Greg

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us