MATLAB中如何获取BP神经网络训练后的参数

2025-02-27 14:47:03
推荐回答(4个)
回答1:

sim命令将运行指定的模型。模型执行时使用传递给sim命令的数据,这些数据包括在options结构中设定的参数值。a=sim(net,[ ])中,net是你的训练网络,后面的中括号是你要训练的结构参数!

回答2:

P = [0 1 2 3 4 5 6 7 8 9 10];
T = [0 1 2 3 4 3 2 1 2 3 4];
net = newff(P,T,5);
Y = sim(net,P);
plot(P,T,P,Y,'o')
net.trainParam.epochs = 50;
net = train(net,P,T);
Y = sim(net,P);
plot(P,T,P,Y,'o')

回答3:

sim命令

回答4:

=sim(net,[ ])函数