Random stratified partitioning: issues with cvpartition

조회 수: 3 (최근 30일)
Quentin D
Quentin D 2018년 7월 6일
댓글: Quentin D 2018년 9월 25일
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
Quentin D
Quentin D 2018년 7월 10일
Can anyone help please?
Quentin D
Quentin D 2018년 9월 25일
Still no answer! Would someone be kind enough to help me with this?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Model Building and Assessment에 대해 자세히 알아보기

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by