Hi,
I have a structure of size S=18x112x50. Here 18=different patients, [112 is (1:37)=class 1 and 38:112=class 0] and 50 = no. of iterations. Now i need to perform Leave one out method to find the accuracy of the feature. For eg: Train1=s1(1:17,:,:),Test1=(18,:,:), run classification algorithm (anything like SVM, LDA etc)get the accuracy, and in second iteration Train2=s1(2:18,:,:),Test2=(1,:,:) and so on as leave one out.

답변 (1개)

Shashank Prasanna
Shashank Prasanna 2013년 2월 26일

0 개 추천

Sunil, if you have the Statistics Toolbox you can use 'crossval' to perform leave one out cross validation:
You can set 'leaveout' to be 1. The above link has examples on how to use the function.

댓글 수: 4

Sunil
Sunil 2013년 2월 26일
Hi, I am new to this classification problem. Any demo code for LOO on an example data (of size mxnxp) would be helpful.
Shashank Prasanna
Shashank Prasanna 2013년 2월 26일
I am afraid I don't understand what you mean by LOO, but as I already mentioned there are examples on how to cross validate classification right at the bottom of the page. You will have to scroll all the way down.
sweet dm
sweet dm 2017년 11월 19일
hi please tell me when we have small data of 60 instance can we do the loo as classification without using test part ??
Bernhard Suhm
Bernhard Suhm 2018년 4월 22일
You can, but neither the model nor its accuracy estimate will be very reliable with this small a dataset.

댓글을 달려면 로그인하십시오.

카테고리

질문:

2013년 2월 26일

댓글:

2018년 4월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by