use the specific numbers of samples directly from dataset
in DeepNetwork::errorFromDataSet.