请问,在epoch2 的地方为什么折线上升,这样的结果对应的网络是不是很烂。
程序如下:
{/
%run plethora of tests
clear;
clc;
close all
%load the twonorm dataset
inputs=xlsread('4s_acceleration_input.xlsx','mean');
outputs=xlsread('4s_output.xlsx');
%modify so that training data is NxD and labels are Nx1, where N=#of
%examples, D=# of features
X = inputs';
Y = outputs';
All_error=[];%所有误差存储
%---------------------------------------------------
%原始数据
%---------------------------------------------------
%time=1;2;%数据是从以2s为间隔的30s内的数据
p=X;%输入数据,共15组,每组3个输入
t=Y;%输出数据,共15组,每组1个输出
%---------------------------------------------------
%数据归一化处理
%mapminmax函数默认将数据归一化到[-1,1],调用形式如下
%[y,ps] =%mapminmax(x,ymin,ymax)
%x需归化的数据输入
%ymin,ymax为需归化到的范围,不填默认为归化到[-1,1]
%y归一化后的样本数据
%ps处理设置,ps主要在结果反归一化中需要调用,或者使用同样的settings归一化另外一组数据
%---------------------------------------------------
[normInput,ps] = mapminmax(p);
[normTarget,ts] = mapminmax(t);
%---------------------------------------------------
%数据乱序,及分类处理
%将输入的15组数据的20%,即3组,用来作为测试数据;
% 样本的20%,即3组,用来作为变化数据;
%另外9组用来正常输入,用来训练;
%dividevec()用来重新随机抽取上述三种分类的数据,原来的顺序被打乱
%函数调用的语法
%[trainV,valV,testV] = dividevec(p,t,valPercent,testPercent)