Package org.encog.neural.som.training.basic

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


   * {@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

Related Classes of org.encog.neural.som.training.basic.BestMatchingUnit

Copyright © 2018 www.massapicom. 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.