Path: news.mathworks.com!not-for-mail
From: "Sophia Yuditskaya" <scyudits@mit.edu>
Newsgroups: comp.soft-sys.matlab
Subject: crossvalind -- size of training/testing set?
Date: Sun, 1 Feb 2009 22:40:18 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 17
Message-ID: <gm58ci$hrf$1@fred.mathworks.com>
Reply-To: "Sophia Yuditskaya" <scyudits@mit.edu>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1233528018 18287 172.30.248.38 (1 Feb 2009 22:40:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 1 Feb 2009 22:40:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1695765
Xref: news.mathworks.com comp.soft-sys.matlab:515288


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