验证集上MSE值的波动。

时间:2018-07-09 20:51:22

标签: neural-network keras

验证MSE值的波动(?)是什么意思? 我正在逼近函数:

math.sin(1.2*X + 0.5) + math.cos(2.5*X + 0.2) + math.atan(2*X + 1) -  math.cos(2*X + 0.5) 

带有模型:

model = Sequential()
model.add(Dense(120, input_dim=1,kernel_initializer='he_normal', activation='relu'))
model.add(Dense(1,input_dim=1, activation=activation_fun))
model.compile(loss='mse', optimizer='Adadelta, metrics=['mse'])
history = model.fit(x, y,validation_data=(x_val,y_val), batch_size=32, epochs=10000, verbose=0)
preds = model.predict(x_test)
prettyPlot(x,y,x_test,preds,history,activation_fun,40000,opt)
model.summary()

训练,验证和测试集的数量: 300/100/100。

我正在规范x,x_val和x_test。 怎么了?

结果: 10k纪元: enter image description here

4万个纪元: enter image description here

0 个答案:

没有答案