Random stratified partitioning: issues with cvpartition

Hello,
I want to perform a randome stratified partition of a X (predictors) and Y (responses) dataset based on Y;
To do so; I use "cvpartition" as follows:
CV = cvpartition(Y,'HoldOut', Ratio,'Stratify', true);
Where Y is a 34x1 response vector and Ratio the proportion of observations to select.
However I get the following error message:
Error using internal.stats.cvpartitionInMemoryImpl (line 22) CVPARTITION can have at most one optional argument
Error in cvpartition (line 156) cv.Impl = internal.stats.cvpartitionInMemoryImpl(varargin{:});
I followed the recommandation here so I don't know what's wrong.
Can anyone help please?
Thanks!

2 Comments

Can anyone help please?
Still no answer! Would someone be kind enough to help me with this?

Sign in to comment.

Answers (0)

Products

Release

R2016b

Asked:

on 6 Jul 2018

Commented:

on 25 Sep 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!