필터 지우기
필터 지우기

Cross validation in matlab between groups

조회 수: 2 (최근 30일)
Betty
Betty 2017년 12월 6일
Hi.
I want to make a leave 1 out cross validation (LOOCV) and I have two cells wherein I stored my data. My first cell Original{} is a 1x33 matrix with 1x7 in each. My second cell Predicted{} has the exact same amount of data as Original{}.
How can I make a for loop to take 1 subject out for testing, and 32 for training, 33 times?
I also want to know the R^2 (R-squared) of each of my cross validated values.
Thank you, B!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by