add cases for returning the error value in DeepNetwork::errorFromDataSet.