我正在使用1.训练输入数据2.训练输出数据和3.测试输入数据以使用以下MATLAB代码获得测试输出数据。
clear all;
clc;
TRIN = xlsread('X.xlsx',1); %To read Training Input Data
TRO = xlsread('X.xlsx',2); %To read Training Output Data
TEIN = xlsread('X.xlsx',3); %To read Testing Input Data
X = con2seq(TRIN); %Convert to cell
T = con2seq(TEIN); %Convert to cell
Xs = con2seq(TRO); %Convert to cell
net = elmannet(1:2,10); %Default Values for layer delays and hidden sizes
[Xs,Xi,Ai,Ts] = preparets(net,X,T);%Training the system using the data
net = train(net,Xs,Ts,Xi,Ai);
view(net)
TEO = net(Xs,Xi,Ai); %The required testing output
perf = perform(net,Ts,TEO)
虽然我正在使用
388 x 192 Training Input Data
388 x 48 Training Output Data and
31 x 192 Testing Input Data
我得到31 x 190测试输出数据而不是31 x 48输出数据。我怎样才能从这里开始。