Why input data does not appear in "Inputs" list of Pattern Recognition GUI?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!