Error using crossvalind (line 131) Not a valid method.

조회 수: 1 (최근 30일)
Chris Murchison
Chris Murchison 2022년 5월 14일
댓글: Chris Murchison 2022년 5월 14일
I am trying to use the crossvalind but it throws up the error shown in the description above, does anyone know why this is coming up as an error? I have given values to all of the required parameters.
outsidef = 10;
outer_Indices = crossvalind('K_fold', size(Trainset,1), outsidef);

답변 (2개)

Walter Roberson
Walter Roberson 2022년 5월 14일
편집: Walter Roberson 2022년 5월 14일
'Kfold' not 'K_fold'

Steven Lord
Steven Lord 2022년 5월 14일
According to the documentation page for crossvalind the value of the first input (listed as cvMethod on that page) that selects K-fold validation is 'Kfold' not 'K_fold'. Remove the underscore.

카테고리

Help CenterFile Exchange에서 Argument Definitions에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by