Examples of IAlgorithmFactory


Examples of com.greentea.relaxation.algorithms.IAlgorithmFactory

      super(Localizer.getString(StringId.NEURAL_NETWORKS));
      this.dataManagementComponent = dataManagementComponent;

      $$$setupUI$$$();

      possibleAlgorithms.put(AlgorithmId.CasCor, new IAlgorithmFactory()
      {
         public LearningAlgorithm createAlgorithm()
         {
            return new CasCorAlgorithm();
         }
      });
      possibleAlgorithms.put(AlgorithmId.PNN, new IAlgorithmFactory()
      {
         public LearningAlgorithm createAlgorithm()
         {
            return new PNNAlgorithm();
         }
      });
      possibleAlgorithms.put(AlgorithmId.LogRegression, new IAlgorithmFactory()
      {
         public LearningAlgorithm createAlgorithm()
         {
            return new LogisticRegressionAlgorithm();
         }
      });
      possibleAlgorithms.put(AlgorithmId.MultilayerPerceptron, new IAlgorithmFactory()
      {
         public LearningAlgorithm createAlgorithm()
         {
            return new MultilayerPerceptronAlgorithm();
         }
View Full Code Here

Examples of com.greentea.relaxation.algorithms.IAlgorithmFactory

      this.rbfTransform = rbfTransform;
   }

   public void addAlgorithm(String componentName, AlgorithmId algorithmId)
   {
      IAlgorithmFactory factory = possibleAlgorithms.get(algorithmId);

      NetworkComponent networkComponent =
              createNetworkComponent(componentName, factory.createAlgorithm(), algorithmId);
      networkComponent
              .setInitialTransformationSettings(normalizeInputs, normalizeOutputs, clusterizeData,
                      rbfTransform);

      networkComponent.prepareComponents();
View Full Code Here

Examples of com.greentea.relaxation.algorithms.IAlgorithmFactory

      prepareComponents();
   }

   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

Examples of com.greentea.relaxation.algorithms.IAlgorithmFactory

   }

   private void prepareParametersOptimizationComponent(final TrainingDataset learningData,
                                                       final TrainingDataset testData)
   {
      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
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.