我的神经网络结果为什么都为1,还有对降水量数据预测的时候输入层和输出层应该怎么定?
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/18 13:01:51
我的神经网络结果为什么都为1,还有对降水量数据预测的时候输入层和输出层应该怎么定?
clear,clc
T1=[70.67 65.49 61.22;
65.49 61.22 59.53;
61.22 59.53 73.82 ;
59.53 73.82 53.79;
73.82 53.79 62.86;
53.79 62.86 50.94;
62.86 50.94 57.25;
50.94 57.25 53.89;
57.25 53.89 46.91;
53.89 46.91 70.62;
46.91 70.62 61.25;
70.62 61.25 57.05;
61.25 57.05 58.92;
57.05 58.92 57.94;
58.92 57.94 49.32;
57.94 49.32 45.6;
49.32 45.60 43.74;
45.60 43.74 53.83;
43.74 53.83 53.20;
53.83 53.20 55.27;
53.20 55.27 55.34;
55.27 55.34 56.50;
55.34 56.50 55.46;
56.50 55.46 59.47;
55.46 59.47 75.61;
59.47 75.61 66.63;
75.61 66.63 50.20;
66.63 50.20 56.10;
50.20 56.10 62.15;
56.10 62.15 57.76;
62.15 57.76 52.37;
57.76 52.37 52.38;
52.37 52.38 63.80;
52.38 63.80 78.38;
63.80 78.38 56.20;
78.38 56.20 46.86;
56.20 46.86 62.22;
46.86 62.22 50.72;
62.22 50.72 61.15;
50.72 61.15 52.95;
61.15 52.95 56.72;
52.95 56.72 51.12;
56.72 51.12 56.94;
51.12 56.94 64.39;
56.94 64.39 54.77;
64.39 54.77 61.67;
54.77 61.67 51.91;
61.67 51.91 99.27]';%把每三年的数据形成一个输入
T2=[61.22 59.53 73.82 53.79 62.86 50.94 57.25 53.89 46.91 70.62 61.25 57.05 58.92 57.94 49.32 45.6 43.74 53.83 53.2 55.27 55.34 56.5 55.46 59.47 75.61 66.63 50.2 56.1 62.15 57.76 53.37 52.38 63.80 78.38 56.2 46.86 62.22 50.72 61.15 52.95 56.72 51.12 56.94 64.39 54.77 61.67 51.91 99.27];%第四年的组成输出
net=newff(minmax(T1),[5,1],{'tansig','logsig'},'traingdx');
net.trainparam.show=50; %每次循环50次
net.trainParam.epochs=8000;
net.trainParam.goal=0.00001;
net=train(net,T1,T2); %这步是训练网络
T3=sim(net,T1)
计算结果都为1,为什么(我是把前三个数据作为输入层,后一个为输出层,以此类推)
clear,clc
T1=[70.67 65.49 61.22;
65.49 61.22 59.53;
61.22 59.53 73.82 ;
59.53 73.82 53.79;
73.82 53.79 62.86;
53.79 62.86 50.94;
62.86 50.94 57.25;
50.94 57.25 53.89;
57.25 53.89 46.91;
53.89 46.91 70.62;
46.91 70.62 61.25;
70.62 61.25 57.05;
61.25 57.05 58.92;
57.05 58.92 57.94;
58.92 57.94 49.32;
57.94 49.32 45.6;
49.32 45.60 43.74;
45.60 43.74 53.83;
43.74 53.83 53.20;
53.83 53.20 55.27;
53.20 55.27 55.34;
55.27 55.34 56.50;
55.34 56.50 55.46;
56.50 55.46 59.47;
55.46 59.47 75.61;
59.47 75.61 66.63;
75.61 66.63 50.20;
66.63 50.20 56.10;
50.20 56.10 62.15;
56.10 62.15 57.76;
62.15 57.76 52.37;
57.76 52.37 52.38;
52.37 52.38 63.80;
52.38 63.80 78.38;
63.80 78.38 56.20;
78.38 56.20 46.86;
56.20 46.86 62.22;
46.86 62.22 50.72;
62.22 50.72 61.15;
50.72 61.15 52.95;
61.15 52.95 56.72;
52.95 56.72 51.12;
56.72 51.12 56.94;
51.12 56.94 64.39;
56.94 64.39 54.77;
64.39 54.77 61.67;
54.77 61.67 51.91;
61.67 51.91 99.27]';%把每三年的数据形成一个输入
T2=[61.22 59.53 73.82 53.79 62.86 50.94 57.25 53.89 46.91 70.62 61.25 57.05 58.92 57.94 49.32 45.6 43.74 53.83 53.2 55.27 55.34 56.5 55.46 59.47 75.61 66.63 50.2 56.1 62.15 57.76 53.37 52.38 63.80 78.38 56.2 46.86 62.22 50.72 61.15 52.95 56.72 51.12 56.94 64.39 54.77 61.67 51.91 99.27];%第四年的组成输出
net=newff(minmax(T1),[5,1],{'tansig','logsig'},'traingdx');
net.trainparam.show=50; %每次循环50次
net.trainParam.epochs=8000;
net.trainParam.goal=0.00001;
net=train(net,T1,T2); %这步是训练网络
T3=sim(net,T1)
计算结果都为1,为什么(我是把前三个数据作为输入层,后一个为输出层,以此类推)
看上去没什么问题,建议先把数据归一化,这样比较好.
我的神经网络结果为什么都为1,还有对降水量数据预测的时候输入层和输出层应该怎么定?
BP神经网络预测降水量时输入和输出分别是什么
在三层bp神经网络中,如果知道输入层的值和各个神经元的权值,怎么求输出层的值?
现建立神经网络,输入层2个神经元,输出层2个神经元,请问隐含层应该设置几个神经元 比较好呢
BP神经网络中隐含层的神经元数怎么确定
神经网络里的 线性层 竞争层 有啥区别?
使用计数器依照预先编制的程序进行计算,当依次输入两个数据为1和1时,输出的结果为2;若依次输入两个数据m和n时,输出的结
MATLAB做bp神经网络预测的几个参数我搞不懂.BP神经网络中某一层的神经元个数与那一层的节点数有什么区别联系.假设一
bp神经网络中可否把各个单元的域值(也就是sita)均设为零,对结果影响多大,只训练权重,结果收敛么?隐层的反馈公式推倒
神经网络的隐含层和输出层都有激励函数吗,激励函数可以任意选吗,权值调整用的函数和激励函数有关吗
你好!我在利用BP神经网络时,我的训练集和预测集的误差都还可以,只是测试集的误差很大,怎么解决?
PCB层的含义丝印层 机械层这些我都知道,不过4 6 8层甚至几十层怎么能有这么多的?