Package com.greentea.relaxation.algorithms

Examples of com.greentea.relaxation.algorithms.LearningAlgorithm


   public static void main(String[] args) throws DataLoadException, LiveTerminatedException
   {
      CasCorAlgorithmFactory factory = new CasCorAlgorithmFactory();
      GAPopulation population = new GAPopulation();

      LearningAlgorithm winner = population.live(factory, 0.05, 16, 20, 1440000);

      serialize(winner.getNetwork());
   }
View Full Code Here


         for (int i = 0; i < requiredEpochCount; ++i)
         {
            processEpoch(epochTime);
         }

         LearningAlgorithm winner = chromosomes.get(0).getLearningAlgorithm();
         for (Parameter p : ParametersUtils.resolveParameters(winner))
         {
            out(p.getName() + " = " + p.getValue());
         }
View Full Code Here

      gaAlgorithmThread = new Thread(new Runnable()
      {
         public void run()
         {
            startGATime = new Date();
            LearningAlgorithm winner = null;
            try
            {
               population.setValuesRanges(owner.getValueRangesMap());
               winner = population
                       .live(algorithmFactory, mutationFactor, populationSize, epochesCount,
View Full Code Here

      dataLoaderComboBox = new JComboBox(DataLoaderType.values());
   }

   private void analyze()
   {
      LearningAlgorithm learningAlgorithm = networkComponent.getLearningAlgorithm();
      if (learningAlgorithm.getLearningStatus() == ILearningController.LearningStatus.InProgress)
      {
         InfoDialog.showUserError(Localizer.getString(StringId.LEARNING_ON_NETWORK_NOT_FINISHED));
         return;
      }

      IForecastPerformer forecastPerformer = learningAlgorithm.getNetwork();
      if (!forecastPerformer.isReady())
      {
         InfoDialog.showUserError(Localizer.getString(StringId.NETWORK_NOT_LEARNED));
         return;
      }
View Full Code Here

   public void recreateAlgorithm()
   {
      IAlgorithmFactory factory = componentOperations.getAlgorithmFactory(algorithmId);

      LearningAlgorithm previousLearningAlgorithm = getLearningAlgorithm();
      List<Parameter> parameters = ParametersUtils.resolveParameters(previousLearningAlgorithm);

      LearningAlgorithm newLearningAlgorithm = factory.createAlgorithm();
      ParametersUtils.apply(newLearningAlgorithm, parameters);

      setLearningAlgorithm(newLearningAlgorithm);
   }
View Full Code Here

      final IAlgorithmFactory factory = componentOperations.getAlgorithmFactory(algorithmId);
      parametersOptimizationComponent.setAlgorithmFactory(new IAlgorithmFactory()
      {
         public LearningAlgorithm createAlgorithm()
         {
            LearningAlgorithm learningAlgorithm = factory.createAlgorithm();
            learningAlgorithm.setLearningData(learningData);
            learningAlgorithm.setTestData(testData);

            return learningAlgorithm;
         }
      });
View Full Code Here

TOP

Related Classes of com.greentea.relaxation.algorithms.LearningAlgorithm

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.