Package org.encog.mathutil.error

Examples of org.encog.mathutil.error.ErrorCalculation.calculate()


    for (final MLDataPair pair : data) {
      final MLData actual = method.compute(pair.getInput());
      errorCalculation.updateError(actual.getData(), pair.getIdeal()
          .getData(),pair.getSignificance());
    }
    return errorCalculation.calculate();
  }

  public static void saveCSV(File targetFile, CSVFormat format, MLDataSet set) {
   
    FileWriter outFile = null;
View Full Code Here


      for (int i = 0; i < prob.l; i++) {
        final double ideal = prob.y[i];
        final double actual = target[i];
        error.updateError(actual, ideal);
      }
      return error.calculate();
    } else {
      for (int i = 0; i < prob.l; i++) {
        if (target[i] == prob.y[i]) {
          ++totalCorrect;
        }
View Full Code Here

    for (final MLDataPair pair : data) {
      final MLData actual = method.compute(pair.getInput());
      errorCalculation.updateError(actual.getData(), pair.getIdeal()
          .getData(),pair.getSignificance());
    }
    return errorCalculation.calculate();
  }
}
View Full Code Here

      errorCalculation.updateError(output.getData(), pair.getIdeal()
          .getData(),pair.getSignificance());
    }

    // set the global error
    setError(errorCalculation.calculate());
  }

  /**
   * {@inheritDoc}
   */
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.