Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3888


Ignore:
Timestamp:
06/02/10 12:02:26 (14 years ago)
Author:
gkronber
Message:

Fixed another compile error. #1009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/SupportVectorMachine/ParameterAdjustmentProblem/SupportVectorMachineParameterAdjustmentProblem.cs

    r3884 r3888  
    150150      Parameters.Add(new OptionalValueParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this test function.", new DoubleValue(0)));
    151151      Parameters.Add(new OptionalValueParameter<RealVector>("BestKnownSolution", "The best known solution for this test function instance."));
     152      Parameters.Add(new OptionalValueParameter<PercentValue>("ActualSamples", "The percentage of samples to use for cross validation."));
    152153
    153154      strategyVectorCreator = new StdDevStrategyVectorCreator();
     
    161162      ParameterizeSolutionCreator();
    162163      ParameterizeEvaluator();
    163       ParameterizeAnalyzers();
    164164
    165165      Initialize();
     
    253253      }
    254254    }
     255    private void ParameterizeAnalyzers() {
     256      foreach (SupportVectorMachineParameterAdjustmentBestSolutionAnalyzer analyzer in Operators.OfType<SupportVectorMachineParameterAdjustmentBestSolutionAnalyzer>()) {
     257        analyzer.DataAnalysisProblemDataParameter.ActualName = DataAnalysisProblemDataParameter.Name;
     258        analyzer.ParameterVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName;
     259        analyzer.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName;
     260      }
     261    }
    255262    private void UpdateStrategyVectorBounds() {
    256263      DoubleMatrix strategyBounds = (DoubleMatrix)Bounds.Clone();
Note: See TracChangeset for help on using the changeset viewer.