Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!postnews.google.com!p36g2000prp.googlegroups.com!not-for-mail
From: Greg Heath <heath@alumni.brown.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: crossvalind -- size of training/testing set?
Date: Tue, 3 Feb 2009 10:11:45 -0800 (PST)
Organization: http://groups.google.com
Lines: 45
Message-ID: <33d11f35-f4d2-40c7-ab56-984d21fab084@p36g2000prp.googlegroups.com>
References: <gm58ci$hrf$1@fred.mathworks.com> <gm7qhc$5mk$1@fred.mathworks.com>
NNTP-Posting-Host: 68.39.98.10
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1233684705 13890 127.0.0.1 (3 Feb 2009 18:11:45 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 3 Feb 2009 18:11:45 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: p36g2000prp.googlegroups.com; posting-host=68.39.98.10; 
	posting-account=mUealwkAAACvQrLWvunjg50tRAnsNtJR
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; 
	Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; 
	.NET CLR 2.0.50727; .NET CLR 3.0.04506.30; Seekmo 10.0.341.0),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:515763


On Feb 2, 5:02=A0pm, "Lucio Andrade-Cetto" <lce...@nospam.mathworks.com>
wrote:
> [train, test] =3D crossvalind('holdOut', groups, 0.25);
> puts 75% into the training and holds 25%,

You are correct. However, for some reasom, the OP wanted to holdout
7%.

The documentation says 'HoldOut'. Is the quantity case invariant?

Hope this helps.

Greg
> if you omit the third input P defaults to 0.5 and the 50% are held out.
> You should definitively not get an out of memory problem, please contact =
support so they can help you diagnosing your problem.
> You may also send me your variable "groups" if you want.
> Lucio Cetto, TMW.
>
>
>
> "Sophia Yuditskaya" <scyud...@mit.edu> wrote in message <gm58ci$hr...@fre=
d.mathworks.com>...
> > Hi,
>
> > I am calling crossvalind as follows:
>
> > [train, test] =3D crossvalind('holdOut', groups);
>
> > What proportion of the original data is put into training vs testing se=
ts? I'm assuming it's 50% each ... but instead I'd like to use 25% of the d=
ata for training and 75% for testing. How do I specify this? I've tried
>
> > [train, test] =3D crossvalind('holdOut', groups, 0.25);
>
> > but I get an OutOfMemoryError.
>
> > Any help would be appreciated.
>
> > Thanks,
>
> > Sophia- Hide quoted text -
>
> - Show quoted text -