Thread Subject: NN Object Size - NN Toolbox V6.0 (R2008a)

Subject: NN Object Size - NN Toolbox V6.0 (R2008a)

From: Farooq Azam

Date: 6 Jan, 2009 19:37:02

Message: 1 of 3

Hello,
Recently, while working on project that requires a relatively large training set, MATLAB kept on running out of memory. On further analysis, I noticed that the size of neural network object created with 'newff' command was abnormally large and it appears that it is due to the fact that NN object contains the input data set as one of its subobject structures.
--
  predictive_model 1x1 69797369 network
  training_input_data_set 50x170910 68364000 double
  
  >> predictive_model.inputs{1,1}
  
  ans =
  
       exampleInput: [50x170910 double]
--
Is there an option disable this feature of an NN object? This feature instead of helping to ease the burden of MATLAB memory utilization is becoming a contributing factor.

Also, am I missing soemthing or 'plotroc' or 'roc' functions can not actually calculate area under the ROC curve?

Thanks in advance for all the help.
Farooq

Subject: NN Object Size - NN Toolbox V6.0 (R2008a)

From: Greg Heath

Date: 8 Jan, 2009 16:08:55

Message: 2 of 3

On Jan 6, 2:37=A0pm, "Farooq Azam" <fa...@ieee.org> wrote:
> Hello,
> Recently, while working on project that requires a relatively large train=
ing set, MATLAB kept on running out of memory. On further analysis, I notic=
ed that the size ofneuralnetwork object created with 'newff' command was ab=
normally large and it appears that it is due to the fact that NN object con=
tains the input data set as one of its subobject structures.
> --
> =A0 predictive_model =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1x1 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 69797369 =A0network =A0 =A0 =A0 =A0 =A0 =A0
> =A0 training_input_data_set =A0 =A0 =A0 =A0 =A0 50x170910 =A0 =A0 =A0 =A0=
 =A0 =A068364000 =A0double
>
> =A0 >> predictive_model.inputs{1,1}
>
> =A0 ans =3D
>
> =A0 =A0 =A0 =A0exampleInput: [50x170910 double]
> --
> Is there an option disable this feature of an NN object? This feature ins=
tead of helping to ease the burden of MATLAB memory utilization is becoming=
 a contributing factor.
>
> Also, am I missing soemthing or 'plotroc' or 'roc' functions can not actu=
ally calculate area under the ROC curve?
>
> Thanks in advance for all the help.
> Farooq

Not familiar with R2008 (e.g., PLOTROC,ROC,...).

Perhaps the memory problems are with TRAINLM.
For a fix;

help train

and see alternative strategies of increasing
memory with LM training or sithching to CG

Hope this helps.

Greg

Subject: NN Object Size - NN Toolbox V6.0 (R2008a)

From: Farooq Azam

Date: 12 Jan, 2009 13:46:02

Message: 3 of 3

Dr. Greg,

Thank you for your response. I did code scaled conjugate gradient method myself and now problem is resolved.

Farooq

Greg Heath <heath@alumni.brown.edu> wrote in message <ca2bd280-417b-45dc-98ed-bca9e0bcf279@z28g2000prd.googlegroups.com>...
> On Jan 6, 2:37=A0pm, "Farooq Azam" <fa...@ieee.org> wrote:
> > Hello,
> > Recently, while working on project that requires a relatively large train=
> ing set, MATLAB kept on running out of memory. On further analysis, I notic=
> ed that the size ofneuralnetwork object created with 'newff' command was ab=
> normally large and it appears that it is due to the fact that NN object con=
> tains the input data set as one of its subobject structures.
> > --
> > =A0 predictive_model =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1x1 =
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 69797369 =A0network =A0 =A0 =A0 =A0 =A0 =A0
> > =A0 training_input_data_set =A0 =A0 =A0 =A0 =A0 50x170910 =A0 =A0 =A0 =A0=
> =A0 =A068364000 =A0double
> >
> > =A0 >> predictive_model.inputs{1,1}
> >
> > =A0 ans =3D
> >
> > =A0 =A0 =A0 =A0exampleInput: [50x170910 double]
> > --
> > Is there an option disable this feature of an NN object? This feature ins=
> tead of helping to ease the burden of MATLAB memory utilization is becoming=
> a contributing factor.
> >
> > Also, am I missing soemthing or 'plotroc' or 'roc' functions can not actu=
> ally calculate area under the ROC curve?
> >
> > Thanks in advance for all the help.
> > Farooq
>
> Not familiar with R2008 (e.g., PLOTROC,ROC,...).
>
> Perhaps the memory problems are with TRAINLM.
> For a fix;
>
> help train
>
> and see alternative strategies of increasing
> memory with LM training or sithching to CG
>
> Hope this helps.
>
> Greg

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com