Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Hoe can i obtain the the row numbers that were remained after selecting the training data set.I could see the row numbers that were selected for training in an order .I would like to see the same for the remaining data without seeing the logical valu
조회 수: 2 (최근 30일)
이전 댓글 표시
clear all
clc
IN=[-0.04844752 0.041968141 -0.044564664;
-0.304020248 0.131284505 0.472041681;
-0.074829705 -0.049999997 -0.094350919;
0.28895241 0.390694469 0.416666657;
-0.098011374 0.012270158 -0.067317739;
-0.175849974 -0.160909101 -0.174713209;
-0.141403094 -0.004999995 -0.098300003;
-0.210274339 -0.191784486 -0.109999985]
for i= 1:6
NEWIN = [ones(size(IN,1),1) IN]
num_NEWIN = size(NEWIN,2)
L=length(NEWIN)
mixed = randperm(L,6) % for validation
Training = NEWIN(mixed,:) % input for training
InTraining = Training(:,1:end-1)
OutTraining = Training(:,end) % output for training
Trainvar = size(InTraining,2)
Trainlength = size(InTraining,1)
TrainingVal = true(1,L);
TrainingVal(mixed)=false;
Remain_validating= NEWIN(TrainingVal,:)
Testing = Remain_validating(:,1:end-1)
댓글 수: 0
답변 (1개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!