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 network size prob

Subject: neural network size prob

From: joveria

Date: 27 Jul, 2011 10:17:09

Message: 1 of 2

hi
my training set has size 8x30 and target has 1x30 but when i run the network for testing it gives error like:
matrix must have 8 rows

because testing size is 6x15

how can i solve it. plz guide me.

Subject: neural network size prob

From: Greg Heath

Date: 30 Jul, 2011 23:23:39

Message: 2 of 2

On Jul 27, 6:17 am, "joveria " <capricon_ji...@yahoo.com> wrote:
> hi
> my training set has size 8x30 and target has 1x30 but when i run the network for testing

it gives error like:
> matrix must have 8 rows
>
> because testing size is 6x15
>
> how can i solve it. plz guide me.

Training Subset

size(ptrn) = { 8 30]
size(ttrn) = [ 1 30]

Testing Subset

size(ptst) = [ 8 15 ] % NOT 6!
size(ttst) = [ 1 15 ]

Hope this helps.

Greg

Tags for this Thread

No tags are associated with 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