Why input data does not appear in "Inputs" list of Pattern Recognition GUI?
이전 댓글 표시
I have partitioned my data table into training and test sets. But, I do not know how to make the sets appear in the "Inputs" and "Targets" list of the Pattern Recognition GUI. I have used the following code from an online tutorial, I was hoping that Xtrain and Xtest show up in th e"Inputs" dropdown list.
%% Define variables to response and predictors
Y = MLtest.CLGrp_Diagnosis;
X = MLtest(:,5:40);
%%Cross Validations
cv = cvpartition(height(MLtest),'holdout',0.50);
%%Training set
Xtrain = X(training(cv),:);
Ytrain = Y(training(cv),:);
%% Convert Table to Inputs and Targets
ind = Ytrain';
vec = ind2vec(ind);
targets = full(vec);
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Keypoint Detection에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!