x=[63.8,18.43,108.04,33.94,27.4,12.6,0.004;
65.21,16.52,110.28,34.097,26.763,22.95,0.004;
65.35,16.396,221.38,35.84,27.77,25.36,0.004;
66.8,15.761,255.8,34.37,25.76,114.14,0.005;
67.22,12.773,285.3,36.2,18.55,42.19,0.004;
67.64,20.95,156.08,36.2,11.35,43,0;
68.05,11.345,188.49,32.77,8.59,32.42,0.045;
68.83,11.619,282.01,32.77,11.17,47.4,0.005;
69.74,14.372,300.1,32.69,10.87,32.08,0.008;
70.67,12.1,352.06,32.58,10.48,37.94,0.014;
71.63,12.967,420.81,24.23,10.96,32.08,0.005;
101.4,14.801,415.65,32.08,11.3,82.38,0.005;
189.21,15.184,519.53,31.22,11.1,87.27,0.005]';
t=[0.274,2.046,0.127;0.309,2.147,0.229;
0.309,2.141,0.230;0.293,1.878,0.242;
0.307,2.134,0.271;1.14,2.17,0.27;
0.234,1.346,0.277;0.234,1.496,0.265;
1.001,1.075,0.509;1.095,1.04,0.412;
1.13,1.1,0.425;0.905,1.154,0.455;
0.851,1.063,0.622]';
X=x; T=t;
for i=1:7;
X(i,:)=(x(i,:)-min(x(i,:)))/(max(x(i,:))-min(x(i,:)));
end
for i=1:3;
T(i,:)=(t(i,:)-min(t(i,:)))/(max(t(i,:))-min(t(i,:)));
end
net=newff(minmax(X),[13 3],{'tansig','purelin'},'traingdx','learngdm');
net.trainparam.epochs=100000;net.trainparam.goal=0.001;lp.lr=0.05;
net=train(net,X,T);
Y=sim(net,X)
y_predict=Y*(max(x(i,:))-min(x(i,:)))+min(x(i,:));
y_predict
x=[191.25,22.046,614.1,31.22,11.25,102.78,0.012]';
X=x;
Y=sim(net,X);
y_predict=Y*(max(x(i,:))-min(x(i,:)))+min(x(i,:));
y_predict
matlab中怎样反归一化,我是个菜鸟,请大神们帮我改改,虽然没有悬赏了,呜呜···
答案:2 悬赏:0 手机版
解决时间 2021-02-13 03:09
- 提问者网友:藍了天白赴美
- 2021-02-12 04:12
最佳答案
- 五星知识达人网友:山君与见山
- 2021-02-12 05:46
y_predict=Y*(max(x(i,:))-min(x(i,:)))+min(x(i,:));
这个就已经反归一化来了啊
或可以使用高级函数
>>help mapminmax
这个就已经反归一化来了啊
或可以使用高级函数
>>help mapminmax
全部回答
- 1楼网友:不甚了了
- 2021-02-12 06:10
仅从你的描述,还不能准确判断问题,最好能把程序和图片数据文件发来,运行下,才能找到问题,我qq2674716548
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯