도움말 센터도움말 센터
'dividerand'
임의의 인덱스를 사용하여 목표값을 3개의 세트로 나누기
[trainInd,valInd,testInd] = dividerand(Q,trainRatio,valRatio,testRatio)
예제
[trainInd,valInd,testInd] = dividerand(Q,trainRatio,valRatio,testRatio)는 나눌 목표값의 개수, 훈련에 사용할 벡터의 비율, 검증에 사용할 벡터의 비율, 테스트에 사용할 벡터의 비율을 받고, 훈련 인덱스, 검증 인덱스, 테스트 인덱스를 반환합니다.
trainInd
valInd
testInd
Q
trainRatio
valRatio
testRatio
모두 축소
이 예제에서는 dividerand 함수를 사용하여 훈련 인덱스, 검증 인덱스, 테스트 인덱스를 가져오는 방법을 보여줍니다.
dividerand
3000개의 샘플을 훈련용으로 60%, 검증용으로 20%, 테스트용으로 20% 비율로 나눕니다.
3000
60%
20%
[trainInd,valInd,testInd] = dividerand(3000,0.6,0.2,0.2)
나눌 목표값의 개수로, 스칼라로 지정됩니다.
0.7
훈련에 사용할 벡터의 비율로, 스칼라로 지정됩니다.
0.15
검증에 사용할 벡터의 비율로, 스칼라로 지정됩니다.
테스트에 사용할 벡터의 비율로, 스칼라로 지정됩니다.
훈련 인덱스로, 행 벡터로 반환됩니다.
검증 인덱스로, 행 벡터로 반환됩니다.
테스트 인덱스로, 행 벡터로 반환됩니다.
다음은 train이 호출되었을 때 어떤 데이터 분할 함수를 사용할지, 이 함수의 파라미터가 무언지, 그리고 목표값의 어떤 측면을 나눌지를 정의하는 신경망 속성입니다.
train
net.divideFcn net.divideParam net.divideMode
R2008a에 개발됨
divideblock | divideind | divideint | dividetrain
divideblock
divideind
divideint
dividetrain
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office