Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: crossvalind -- size of training/testing set?
Date: Mon, 2 Feb 2009 22:02:20 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 24
Message-ID: <gm7qhc$5mk$1@fred.mathworks.com>
References: <gm58ci$hrf$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1233612140 5844 172.30.248.35 (2 Feb 2009 22:02:20 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 2 Feb 2009 22:02:20 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 222043
Xref: news.mathworks.com comp.soft-sys.matlab:515524


[train, test] = crossvalind('holdOut', groups, 0.25);
puts 75% into the training and holds 25%, 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" <scyudits@mit.edu> wrote in message <gm58ci$hrf$1@fred.mathworks.com>...
> Hi,
> 
> I am calling crossvalind as follows:
> 
> [train, test] = crossvalind('holdOut', groups);
> 
> What proportion of the original data is put into training vs testing sets? I'm assuming it's 50% each ... but instead I'd like to use 25% of the data for training and 75% for testing. How do I specify this? I've tried
> 
> [train, test] = crossvalind('holdOut', groups, 0.25);
> 
> but I get an OutOfMemoryError.
> 
> Any help would be appreciated.
> 
> Thanks,
> 
> Sophia