Examples of BestMatchingUnit


Examples of org.encog.neural.som.training.basic.BestMatchingUnit

   * {@inheritDoc}
   */
  @Override
  public final double calculateError(final MLDataSet data) {

    final BestMatchingUnit bmu = new BestMatchingUnit(this);

    bmu.reset();

    // Determine the BMU for each training element.
    for (final MLDataPair pair : data) {
      final MLData input = pair.getInput();
      bmu.calculateBMU(input);
    }

    // update the error
    return bmu.getWorstDistance() / 100.0;
  }
View Full Code Here

Examples of org.encog.neural.som.training.basic.BestMatchingUnit

   * {@inheritDoc}
   */
  @Override
  public double calculateError(final MLDataSet data) {

    final BestMatchingUnit bmu = new BestMatchingUnit(this);

    bmu.reset();

    // Determine the BMU for each training element.
    for (final MLDataPair pair : data) {
      final MLData input = pair.getInput();
      bmu.calculateBMU(input);
    }

    // update the error
    return bmu.getWorstDistance() / 100.0;
  }
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.