Package org.encog.neural.networks.training.genetic

Examples of org.encog.neural.networks.training.genetic.NeuralGeneticAlgorithm$NeuralGeneticAlgorithmHelper


  public void testGenetic() throws Throwable
  {
    MLDataSet trainingData = new BasicMLDataSet(XOR.XOR_INPUT,XOR.XOR_IDEAL);   
    BasicNetwork network = NetworkUtil.createXORNetworkUntrained();
    CalculateScore score = new TrainingSetScore(trainingData);
    NeuralGeneticAlgorithm genetic = new NeuralGeneticAlgorithm(network, new RangeRandomizer(-1,1), score, 500,0.1,0.25);
    NetworkUtil.testTraining(genetic,0.00001);
  }
View Full Code Here


      train = new NeuralSimulatedAnnealing(
          network, new PilotScore(), 10, 2, 100);
    }
    else
    {
      train = new NeuralGeneticAlgorithm(
          network, new FanInRandomizer(),
          new PilotScore(),500, 0.1, 0.25);
    }
   
    int epoch = 1;
View Full Code Here

      final double mutationPercent = dialog.getMutationPercent()
          .getValue();
      final double percentToMate = dialog.getPercentToMate().getValue();

      CalculateScore score = new TrainingSetScore(trainingData);
      final NeuralGeneticAlgorithm train = new NeuralGeneticAlgorithm(
          (BasicNetwork) file.getObject(),
          new RangeRandomizer(-1, 1), score, populationSize,
          mutationPercent, percentToMate);
      train.setTraining(trainingData);
      startup(file, train, dialog.getMaxError().getValue() / 100.0);
    }

  }
View Full Code Here

    final double mutation = holder.getDouble(
        MLTrainFactory.PROPERTY_MUTATION, false, 0.1);
    final double mate = holder.getDouble(MLTrainFactory.PROPERTY_MATE,
        false, 0.25);

    final MLTrain train = new NeuralGeneticAlgorithm((BasicNetwork) method,
        new RangeRandomizer(-1, 1), score, populationSize, mutation,
        mate);

    return train;
  }
View Full Code Here

TOP

Related Classes of org.encog.neural.networks.training.genetic.NeuralGeneticAlgorithm$NeuralGeneticAlgorithmHelper

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.