Random stratified partitioning: issues with cvpartition
4 次查看(过去 30 天)
显示 更早的评论
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{:});
Can anyone help please?
Thanks!
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Gaussian Process Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!