Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/25/09 16:40:11 (16 years ago)
Author:
gkronber
Message:

Added evaluation of VAF to hard-coded GP algorithms. VAF values for training, validation, test are stored as model attributes. #641 (CEDMA should also store VAF of models)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/StandardGP.cs

    r1873 r1890  
    240240      testR2Evaluator.GetVariableInfo("SamplesStart").ActualName = "TestSamplesStart";
    241241      testR2Evaluator.GetVariableInfo("SamplesEnd").ActualName = "TestSamplesEnd";
     242      VarianceAccountedForEvaluator trainingVAFEvaluator = new VarianceAccountedForEvaluator();
     243      trainingVAFEvaluator.Name = "TrainingVAFEvaluator";
     244      trainingVAFEvaluator.GetVariableInfo("VAF").ActualName = "TrainingVAF";
     245      trainingVAFEvaluator.GetVariableInfo("SamplesStart").ActualName = "TrainingSamplesStart";
     246      trainingVAFEvaluator.GetVariableInfo("SamplesEnd").ActualName = "TrainingSamplesEnd";
     247      VarianceAccountedForEvaluator validationVAFEvaluator = new VarianceAccountedForEvaluator();
     248      validationVAFEvaluator.Name = "ValidationVAFEvaluator";
     249      validationVAFEvaluator.GetVariableInfo("VAF").ActualName = "ValidationVAF";
     250      validationVAFEvaluator.GetVariableInfo("SamplesStart").ActualName = "ValidationSamplesStart";
     251      validationVAFEvaluator.GetVariableInfo("SamplesEnd").ActualName = "ValidationSamplesEnd";
     252      VarianceAccountedForEvaluator testVAFEvaluator = new VarianceAccountedForEvaluator();
     253      testVAFEvaluator.Name = "TestVAFEvaluator";
     254      testVAFEvaluator.GetVariableInfo("VAF").ActualName = "TestVAF";
     255      testVAFEvaluator.GetVariableInfo("SamplesStart").ActualName = "TestSamplesStart";
     256      testVAFEvaluator.GetVariableInfo("SamplesEnd").ActualName = "TestSamplesEnd";
     257
    242258      ProgrammableOperator progOperator = new ProgrammableOperator();
    243259      progOperator.RemoveVariableInfo("Result");
     
    257273      bestSolutionProcessor.AddSubOperator(validationR2Evaluator);
    258274      bestSolutionProcessor.AddSubOperator(testR2Evaluator);
     275      bestSolutionProcessor.AddSubOperator(trainingVAFEvaluator);
     276      bestSolutionProcessor.AddSubOperator(validationVAFEvaluator);
     277      bestSolutionProcessor.AddSubOperator(testVAFEvaluator);
    259278      bestSolutionProcessor.AddSubOperator(progOperator);
    260279      return bestSolutionProcessor;
Note: See TracChangeset for help on using the changeset viewer.