Hello,

In these days i'm trying to train a deep neural network with a matrix with 14382 variables x 671 cases, from IV spectral data. I'm using R with Keras package (compile and execution commands bellow). The training set error is low, in some cases, decimal, whereas the error of validation set is very high and this two curves do not encounter at the computation end nor the validation error minimizes - it remains basically constant.

what i have to do to minimize the validation error in this ML challenge?

commands:

modelo%

layer_dense(units=1250,activation='relu',input_shape=c(14381)) %>%

layer_dense(units=630,activation='relu') %>%

layer_dense(units=630,activation='relu') %>%

layer_dense(units=410,activation='relu') %>%

layer_dense(units=1)

modelo %>% compile(loss='mse',optimizer='adam',metrics='mae')

mymodel%

fit(training,trainingtarget,epochs=1500,batch_size=250,validation_split=0.2)

More Lucas Almir Cavalcante Minho's questions See All
Similar questions and discussions