code: public <T extends RegressionEvaluation> T evaluateRegression(DataSetIterator iterator) {
          return (T)doEvaluation(iterator, new RegressionEvaluation(iterator.totalOutcomes()))[0];
      }
docs: Evaluate the network for regression performance
  @param iterator Data to evaluate on
  @return