Split into three set, do not run test set.

조회 수: 2 (최근 30일)
Michelle H
Michelle H 2021년 5월 14일
답변: Madhav Thakker 2021년 5월 18일
Hello.
I was wondering, in a NN, i understand you can split the dataset using for example divederand or divideblock. But how do you "save" the test set from running when training ? Also i understand you can divde and hold out part of the dataset with for example c = cvpartition(n,'Holdout',p), but this only divides into two parts training and test set. I am new to ML, so this is all a bit confusing still i hope this makes sense to you. Also what is the difference between cross validation and holding out one part of the dataset?
Regards Michelle.

답변 (1개)

Madhav Thakker
Madhav Thakker 2021년 5월 18일
Hi Michelle,
The cvpartition(group,'KFold',k) function with k=n creates a random partition for leave-one-out cross-validation on n observations.
To know more about this, have a look at https://in.mathworks.com/discovery/cross-validation.html.
Hope this helps.

카테고리

Help CenterFile Exchange에서 Time Series에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by