DNN_train.cpp mostly complete DNN output function