📄 createdataapptestreg.m
字号:
function [xapp,yapp,xtest,ytest,indice]=CreateDataAppTestReg(x,y,nbtrain)
% [xapp,yapp,xtest,ytest,indice]=CreateDataAppTestReg(x,y,nbtrain)
%
xapp=[];
yapp=[];
xtest=[];
ytest=[];
indice=[];
indice.app=[];
indice.test=[];
nbdata=length(y);
ind=1:nbdata;
aux=randperm(nbdata);
indapp=ind(aux(1:nbtrain));
indtest=ind(aux(nbtrain+1:end));
xapp=[x(indapp,:)];
yapp=[y(indapp,:)];
xtest=[x(indtest,:)];
ytest=[;y(indtest,:)];
indice.app=[indapp];
indice.test=[indtest];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -