Changeset 18156


Ignore:
Timestamp:
12/17/21 16:17:12 (7 months ago)
Author:
dpiringe
Message:

#3136

  • adapted the unit test RunStructureTemplateRegressionSampleTest to match the results
  • added the sample to the optimizer start page
Location:
branches/3136_Structural_GP
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3136_Structural_GP/HeuristicLab.Optimizer/3.3/HeuristicLab.Optimizer-3.3.csproj

    r18146 r18156  
    154154    <EmbeddedResource Include="Documents\OSGP_SymReg.hl" />
    155155    <EmbeddedResource Include="Documents\GP_Shape_Constrained_Regression.hl" />
     156    <EmbeddedResource Include="Documents\GP_Structure_Template_Regression.hl" />
    156157    <None Include="Plugin.cs.frame" />
    157158    <Compile Include="ChangeNestingLevelDialog.cs">
  • branches/3136_Structural_GP/HeuristicLab.Optimizer/3.3/StartPage.cs

    r18146 r18156  
    130130        };
    131131      groupLookup[standardProblemsGroup] = standardProblems;
    132       var dataAnalysisProblems = new List<string> { "ALPSGP_SymReg", "SGP_SymbClass", "SGP_SymbReg", "OSGP_SymReg", "OSGP_TimeSeries", "GE_SymbReg", "GPR", "GP_Shape_Constrained_Regression" };
     132      var dataAnalysisProblems = new List<string> { "ALPSGP_SymReg", "SGP_SymbClass", "SGP_SymbReg", "OSGP_SymReg", "OSGP_TimeSeries",
     133                                                    "GE_SymbReg", "GPR", "GP_Shape_Constrained_Regression", "GP_Structure_Template_Regression" };
    133134      groupLookup[dataAnalysisGroup] = dataAnalysisProblems;
    134135      var scripts = new List<string> { "GA_QAP_Script", "GUI_Automation_Script", "OSGA_Rastrigin_Script",
  • branches/3136_Structural_GP/HeuristicLab.Tests/HeuristicLab-3.3/Samples/StructureTemplateRegressionSampleTest.cs

    r18151 r18156  
    3030
    3131      if (Environment.Is64BitProcess) {
    32         Assert.AreEqual(4.2920235018589167E-05, SamplesUtils.GetDoubleResult(ga, "BestQuality"), 1E-8);
    33         Assert.AreEqual(54.076796020975593, SamplesUtils.GetDoubleResult(ga, "CurrentAverageQuality"), 1E-8);
    34         Assert.AreEqual(5104.3828108493908, SamplesUtils.GetDoubleResult(ga, "CurrentWorstQuality"), 1E-8);
     32        Assert.AreEqual(1.2142319244409949E-06, SamplesUtils.GetDoubleResult(ga, "BestQuality"), 1E-8);
     33        Assert.AreEqual(120.13505532841884, SamplesUtils.GetDoubleResult(ga, "CurrentAverageQuality"), 1E-8);
     34        Assert.AreEqual(8322.6086777405562, SamplesUtils.GetDoubleResult(ga, "CurrentWorstQuality"), 1E-8);
    3535        Assert.AreEqual(5050, SamplesUtils.GetIntResult(ga, "EvaluatedSolutions"));
    3636      } else {
    37         Assert.AreEqual(4.29202350185872E-05, SamplesUtils.GetDoubleResult(ga, "BestQuality"), 1E-8);
    38         Assert.AreEqual(54.076796020975593, SamplesUtils.GetDoubleResult(ga, "CurrentAverageQuality"), 1E-8);
    39         Assert.AreEqual(5104.3828108493908, SamplesUtils.GetDoubleResult(ga, "CurrentWorstQuality"), 1E-8);
     37        Assert.AreEqual(1.2142319244408615E-06, SamplesUtils.GetDoubleResult(ga, "BestQuality"), 1E-8);
     38        Assert.AreEqual(120.135055328418, SamplesUtils.GetDoubleResult(ga, "CurrentAverageQuality"), 1E-8);
     39        Assert.AreEqual(8322.6086777405562, SamplesUtils.GetDoubleResult(ga, "CurrentWorstQuality"), 1E-8);
    4040        Assert.AreEqual(5050, SamplesUtils.GetIntResult(ga, "EvaluatedSolutions"));
    4141      }
Note: See TracChangeset for help on using the changeset viewer.