Changeset 16818 for branches/2635_HeuristicLab.OSGAEvaluator
- Timestamp:
- 04/18/19 15:43:11 (6 years ago)
- Location:
- branches/2635_HeuristicLab.OSGAEvaluator
- Files:
-
- 3 added
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/2635_HeuristicLab.OSGAEvaluator/HeuristicLab.OSGAEvaluator
-
Property
svn:ignore
set to
Plugin.cs
-
Property
svn:ignore
set to
-
branches/2635_HeuristicLab.OSGAEvaluator/HeuristicLab.OSGAEvaluator/AdjustedEvaluatedSolutionsAnalyzer.cs
r14428 r16818 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; … … 25 26 using HeuristicLab.Optimization; 26 27 using HeuristicLab.Parameters; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;28 28 using HeuristicLab.Problems.DataAnalysis.Symbolic; 29 29 using HeuristicLab.Problems.DataAnalysis.Symbolic.Regression; … … 31 31 namespace HeuristicLab.OSGAEvaluator { 32 32 [Item("AdjustedEvaluatedSolutionsAnalyzer", "Analyzer which aggregates the adjusted evaluated solutions count from the predictive evaluator.")] 33 [Storable Class]33 [StorableType("791A5594-FC15-41AF-9D06-86D1313C4C8B")] 34 34 public class AdjustedEvaluatedSolutionsAnalyzer : SymbolicDataAnalysisSingleObjectiveAnalyzer { 35 35 private const string EvaluatorParameterName = "Evaluator"; … … 49 49 50 50 [StorableConstructor] 51 protected AdjustedEvaluatedSolutionsAnalyzer( bool deserializing) : base(deserializing) { }51 protected AdjustedEvaluatedSolutionsAnalyzer(StorableConstructorFlag _) : base(_) { } 52 52 53 53 protected AdjustedEvaluatedSolutionsAnalyzer(AdjustedEvaluatedSolutionsAnalyzer original, Cloner cloner) : base(original, cloner) { } -
branches/2635_HeuristicLab.OSGAEvaluator/HeuristicLab.OSGAEvaluator/HeuristicLab.OSGAEvaluator.csproj
r14428 r16818 10 10 <RootNamespace>HeuristicLab.OSGAEvaluator</RootNamespace> 11 11 <AssemblyName>HeuristicLab.OSGAEvaluator</AssemblyName> 12 <TargetFrameworkVersion>v4. 5.2</TargetFrameworkVersion>12 <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> 13 13 <FileAlignment>512</FileAlignment> 14 <TargetFrameworkProfile /> 14 15 </PropertyGroup> 15 16 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> … … 17 18 <DebugType>full</DebugType> 18 19 <Optimize>false</Optimize> 19 <OutputPath>..\..\..\trunk\ sources\bin\</OutputPath>20 <OutputPath>..\..\..\trunk\bin\</OutputPath> 20 21 <DefineConstants>DEBUG;TRACE</DefineConstants> 21 22 <ErrorReport>prompt</ErrorReport> … … 25 26 <DebugType>pdbonly</DebugType> 26 27 <Optimize>true</Optimize> 27 <OutputPath>..\..\..\trunk\ sources\bin\</OutputPath>28 <OutputPath>..\..\..\trunk\bin\</OutputPath> 28 29 <DefineConstants>TRACE</DefineConstants> 29 30 <ErrorReport>prompt</ErrorReport> … … 37 38 </PropertyGroup> 38 39 <ItemGroup> 40 <Reference Include="HEAL.Attic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 41 <SpecificVersion>False</SpecificVersion> 42 <HintPath>..\..\..\trunk\bin\HEAL.Attic.dll</HintPath> 43 <Private>False</Private> 44 </Reference> 39 45 <Reference Include="HeuristicLab.Analysis-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 40 46 <SpecificVersion>False</SpecificVersion> 41 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Analysis-3.3.dll</HintPath> 47 <HintPath>..\..\..\trunk\bin\HeuristicLab.Analysis-3.3.dll</HintPath> 48 <Private>False</Private> 49 </Reference> 50 <Reference Include="HeuristicLab.Attic, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> 51 <SpecificVersion>False</SpecificVersion> 52 <HintPath>..\..\..\trunk\bin\HeuristicLab.Attic.dll</HintPath> 42 53 <Private>False</Private> 43 54 </Reference> 44 55 <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 45 56 <SpecificVersion>False</SpecificVersion> 46 <HintPath>..\..\..\trunk\ sources\bin\HeuristicLab.Collections-3.3.dll</HintPath>57 <HintPath>..\..\..\trunk\bin\HeuristicLab.Collections-3.3.dll</HintPath> 47 58 <Private>False</Private> 48 59 </Reference> 49 60 <Reference Include="HeuristicLab.Common-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 50 61 <SpecificVersion>False</SpecificVersion> 51 <HintPath>..\..\..\trunk\ sources\bin\HeuristicLab.Common-3.3.dll</HintPath>62 <HintPath>..\..\..\trunk\bin\HeuristicLab.Common-3.3.dll</HintPath> 52 63 <Private>False</Private> 53 64 </Reference> 54 65 <Reference Include="HeuristicLab.Core-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 55 66 <SpecificVersion>False</SpecificVersion> 56 <HintPath>..\..\..\trunk\ sources\bin\HeuristicLab.Core-3.3.dll</HintPath>67 <HintPath>..\..\..\trunk\bin\HeuristicLab.Core-3.3.dll</HintPath> 57 68 <Private>False</Private> 58 69 </Reference> 59 70 <Reference Include="HeuristicLab.Data-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 60 71 <SpecificVersion>False</SpecificVersion> 61 <HintPath>..\..\..\trunk\ sources\bin\HeuristicLab.Data-3.3.dll</HintPath>72 <HintPath>..\..\..\trunk\bin\HeuristicLab.Data-3.3.dll</HintPath> 62 73 <Private>False</Private> 63 74 </Reference> 64 75 <Reference Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 65 76 <SpecificVersion>False</SpecificVersion> 66 <HintPath>..\..\..\trunk\ sources\bin\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.dll</HintPath>77 <HintPath>..\..\..\trunk\bin\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.dll</HintPath> 67 78 <Private>False</Private> 68 79 </Reference> 69 80 <Reference Include="HeuristicLab.Operators-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 70 81 <SpecificVersion>False</SpecificVersion> 71 <HintPath>..\..\..\trunk\ sources\bin\HeuristicLab.Operators-3.3.dll</HintPath>82 <HintPath>..\..\..\trunk\bin\HeuristicLab.Operators-3.3.dll</HintPath> 72 83 <Private>False</Private> 73 84 </Reference> 74 85 <Reference Include="HeuristicLab.Optimization-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 75 86 <SpecificVersion>False</SpecificVersion> 76 <HintPath>..\..\..\trunk\ sources\bin\HeuristicLab.Optimization-3.3.dll</HintPath>87 <HintPath>..\..\..\trunk\bin\HeuristicLab.Optimization-3.3.dll</HintPath> 77 88 <Private>False</Private> 78 89 </Reference> 79 90 <Reference Include="HeuristicLab.Parameters-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 80 91 <SpecificVersion>False</SpecificVersion> 81 <HintPath>..\..\..\trunk\ sources\bin\HeuristicLab.Parameters-3.3.dll</HintPath>92 <HintPath>..\..\..\trunk\bin\HeuristicLab.Parameters-3.3.dll</HintPath> 82 93 <Private>False</Private> 83 94 </Reference> 84 95 <Reference Include="HeuristicLab.Persistence-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 85 96 <SpecificVersion>False</SpecificVersion> 86 <HintPath>..\..\..\trunk\ sources\bin\HeuristicLab.Persistence-3.3.dll</HintPath>97 <HintPath>..\..\..\trunk\bin\HeuristicLab.Persistence-3.3.dll</HintPath> 87 98 <Private>False</Private> 88 99 </Reference> 89 100 <Reference Include="HeuristicLab.PluginInfrastructure-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 90 101 <SpecificVersion>False</SpecificVersion> 91 <HintPath>..\..\..\trunk\ sources\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath>102 <HintPath>..\..\..\trunk\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 92 103 <Private>False</Private> 93 104 </Reference> 94 105 <Reference Include="HeuristicLab.Problems.DataAnalysis-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 95 106 <SpecificVersion>False</SpecificVersion> 96 <HintPath>..\..\..\trunk\ sources\bin\HeuristicLab.Problems.DataAnalysis-3.4.dll</HintPath>107 <HintPath>..\..\..\trunk\bin\HeuristicLab.Problems.DataAnalysis-3.4.dll</HintPath> 97 108 <Private>False</Private> 98 109 </Reference> 99 110 <Reference Include="HeuristicLab.Problems.DataAnalysis.Symbolic-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 100 111 <SpecificVersion>False</SpecificVersion> 101 <HintPath>..\..\..\trunk\ sources\bin\HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.dll</HintPath>112 <HintPath>..\..\..\trunk\bin\HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.dll</HintPath> 102 113 <Private>False</Private> 103 114 </Reference> 104 115 <Reference Include="HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 105 116 <SpecificVersion>False</SpecificVersion> 106 <HintPath>..\..\..\trunk\ sources\bin\HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.dll</HintPath>117 <HintPath>..\..\..\trunk\bin\HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.dll</HintPath> 107 118 <Private>False</Private> 108 119 </Reference> … … 119 130 <Compile Include="AdjustedEvaluatedSolutionsAnalyzer.cs" /> 120 131 <Compile Include="OSGAPredictionCountsAnalyzer.cs" /> 132 <None Include="Plugin.cs.frame" /> 121 133 <Compile Include="Plugin.cs" /> 122 134 <Compile Include="Properties\AssemblyInfo.cs" /> … … 127 139 </ItemGroup> 128 140 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 141 <PropertyGroup> 142 <PreBuildEvent>set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 143 set ProjectDir=$(ProjectDir) 144 set SolutionDir=$(SolutionDir) 145 set Outdir=$(Outdir) 146 147 call PreBuildEvent.cmd 148 </PreBuildEvent> 149 </PropertyGroup> 129 150 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 130 151 Other similar extension points exist, see Microsoft.Common.targets. -
branches/2635_HeuristicLab.OSGAEvaluator/HeuristicLab.OSGAEvaluator/OSGAPredictionCountsAnalyzer.cs
r14584 r16818 20 20 #endregion 21 21 22 using System.Linq;22 using HEAL.Attic; 23 23 using HeuristicLab.Analysis; 24 24 using HeuristicLab.Common; … … 26 26 using HeuristicLab.Optimization; 27 27 using HeuristicLab.Parameters; 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;29 28 using HeuristicLab.Problems.DataAnalysis.Symbolic; 30 29 using HeuristicLab.Problems.DataAnalysis.Symbolic.Regression; 30 using System.Linq; 31 31 32 32 namespace HeuristicLab.OSGAEvaluator { 33 33 [Item("OSGAPredictionCountsAnalyzer", "An analyzer which records the counts of the rejected offspring predicted by the evaluator without evaluating all rows.")] 34 [StorableClass] 35 34 [StorableType("7730D977-A422-4C64-83C2-8989EA4B3922")] 36 35 public class OSGAPredictionCountsAnalyzer : SymbolicDataAnalysisSingleObjectiveAnalyzer { 37 36 private const string EvaluatorParameterName = "Evaluator"; … … 40 39 public ILookupParameter<SymbolicRegressionSingleObjectiveEvaluator> EvaluatorParameter { 41 40 get { return (ILookupParameter<SymbolicRegressionSingleObjectiveEvaluator>)Parameters[EvaluatorParameterName]; } 41 } 42 43 [StorableConstructor] 44 protected OSGAPredictionCountsAnalyzer(StorableConstructorFlag _) : base(_) { 42 45 } 43 46 -
branches/2635_HeuristicLab.OSGAEvaluator/HeuristicLab.OSGAEvaluator/Plugin.cs.frame
r16817 r16818 4 4 [Plugin("HeuristicLab.OSGAEvaluator", "OSGA Evaluator", "3.3.13.0")] 5 5 [PluginFile("HeuristicLab.OSGAEvaluator.dll", PluginFileType.Assembly)] 6 [PluginDependency("HeuristicLab.Attic", "1.0")] 7 [PluginDependency("HeuristicLab.Analysis", "3.3")] 8 [PluginDependency("HeuristicLab.Collections", "3.3")] 9 [PluginDependency("HeuristicLab.Common", "3.3")] 10 [PluginDependency("HeuristicLab.Core", "3.3")] 11 [PluginDependency("HeuristicLab.Data", "3.3")] 12 [PluginDependency("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding", "3.3")] 13 [PluginDependency("HeuristicLab.Operators", "3.3")] 14 [PluginDependency("HeuristicLab.Optimization", "3.3")] 15 [PluginDependency("HeuristicLab.Parameters", "3.3")] 16 [PluginDependency("HeuristicLab.Persistence", "3.3")] 17 [PluginDependency("HeuristicLab.Problems.DataAnalysis", "3.3")] 18 [PluginDependency("HeuristicLab.Problems.DataAnalysis.Symbolic", "3.3")] 19 [PluginDependency("HeuristicLab.Problems.DataAnalysis.Symbolic.Regression", "3.3")] 6 20 public class Plugin : PluginBase { 7 21 } -
branches/2635_HeuristicLab.OSGAEvaluator/HeuristicLab.OSGAEvaluator/SymbolicRegressionSingleObjectiveOSGAEvaluator.cs
r14609 r16818 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 22 using HEAL.Attic; 25 23 using HeuristicLab.Common; 26 24 using HeuristicLab.Core; … … 29 27 using HeuristicLab.Optimization; 30 28 using HeuristicLab.Parameters; 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using System; 30 using System.Collections.Generic; 31 using System.Linq; 32 32 33 33 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression { 34 34 [Item("SymbolicRegressionSingleObjectiveOSGAEvaluator", "An evaluator which tries to predict when a child will not be able to fullfil offspring selection criteria, to save evaluation time.")] 35 [Storable Class]35 [StorableType("559C6852-9A4F-4C13-9AA5-3D2A44834AC3")] 36 36 public class SymbolicRegressionSingleObjectiveOsgaEvaluator : SymbolicRegressionSingleObjectiveEvaluator { 37 37 private const string RelativeParentChildQualityThresholdParameterName = "RelativeParentChildQualityThreshold"; … … 108 108 109 109 // keep track of statistics 110 [Storable] 110 111 public double AdjustedEvaluatedSolutions { get; set; } 112 [Storable] 111 113 public IntMatrix RejectedStats { get; set; } 114 [Storable] 112 115 public IntMatrix TotalStats { get; set; } 113 116 … … 144 147 145 148 [StorableConstructor] 146 protected SymbolicRegressionSingleObjectiveOsgaEvaluator( bool deserializing) : base(deserializing) {149 protected SymbolicRegressionSingleObjectiveOsgaEvaluator(StorableConstructorFlag _) : base(_) { 147 150 TotalStats = new IntMatrix(); 148 151 RejectedStats = new IntMatrix(); … … 381 384 quality = calculatorError == OnlineCalculatorError.None ? r * r : 0d; 382 385 } 383 AdjustedEvaluatedSolutions += 1d;386 AdjustedEvaluatedSolutions++; 384 387 return quality; 385 388 }
Note: See TracChangeset
for help on using the changeset viewer.