fitting_nn_model