Changeset 9411 for branches/LearningClassifierSystems
- Timestamp:
- 04/30/13 16:54:43 (12 years ago)
- Location:
- branches/LearningClassifierSystems
- Files:
-
- 18 added
- 4 deleted
- 41 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Algorithms.DataAnalysis/3.4/CrossValidation.cs
r8970 r9411 29 29 using HeuristicLab.Core; 30 30 using HeuristicLab.Data; 31 using HeuristicLab.Encodings.ConditionActionEncoding; 31 32 using HeuristicLab.Optimization; 33 using HeuristicLab.Optimization.Operators.LCS; 32 34 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 33 35 using HeuristicLab.Problems.DataAnalysis; … … 405 407 results.Add(result.Name, result.Value); 406 408 } 409 foreach (IResult result in ExtractAndAggregateGAssistSolutions(resultCollections)) { 410 results.Add(result.Name, result.Value); 411 } 412 foreach (IResult result in ExtractAndAggregateConditionActionSolutions(resultCollections)) { 413 results.Add(result.Name, result.Value); 414 } 407 415 results.Add("Execution Time", new TimeSpanValue(this.ExecutionTime)); 408 416 results.Add("CrossValidation Folds", new RunCollection(runs)); 417 } 418 419 private IEnumerable<IResult> ExtractAndAggregateConditionActionSolutions(IEnumerable<KeyValuePair<string, IItem>> resultCollections) { 420 Dictionary<string, List<IConditionActionSolution>> resultSolutions = new Dictionary<string, List<IConditionActionSolution>>(); 421 foreach (var result in resultCollections) { 422 var conditionActionSolution = result.Value as IConditionActionSolution; 423 if (conditionActionSolution != null) { 424 if (resultSolutions.ContainsKey(result.Key)) { 425 resultSolutions[result.Key].Add(conditionActionSolution); 426 } else { 427 resultSolutions.Add(result.Key, new List<IConditionActionSolution>() { conditionActionSolution }); 428 } 429 } 430 } 431 List<IResult> aggregatedResults = new List<IResult>(); 432 foreach (KeyValuePair<string, List<IConditionActionSolution>> solutions in resultSolutions) { 433 // clone manually to correctly clone references between cloned root objects 434 Cloner cloner = new Cloner(); 435 var problemDataClone = (IConditionActionProblemData)cloner.Clone(Problem.ProblemData); 436 // set partitions of problem data clone correctly 437 problemDataClone.TrainingPartition.Start = SamplesStart.Value; problemDataClone.TrainingPartition.End = SamplesEnd.Value; 438 problemDataClone.TestPartition.Start = SamplesStart.Value; problemDataClone.TestPartition.End = SamplesEnd.Value; 439 // clone models 440 var ensembleSolution = new ConditionActionEnsembleSolution(problemDataClone); 441 ensembleSolution.AddConditionActionSolutions(solutions.Value); 442 443 aggregatedResults.Add(new Result(solutions.Key + " (ensemble)", ensembleSolution)); 444 } 445 List<IResult> flattenedResults = new List<IResult>(); 446 CollectResultsRecursively("", aggregatedResults, flattenedResults); 447 return flattenedResults; 448 } 449 450 private IEnumerable<IResult> ExtractAndAggregateGAssistSolutions(IEnumerable<KeyValuePair<string, IItem>> resultCollections) { 451 Dictionary<string, List<IGAssistSolution>> resultSolutions = new Dictionary<string, List<IGAssistSolution>>(); 452 foreach (var result in resultCollections) { 453 var gassistSolution = result.Value as IGAssistSolution; 454 if (gassistSolution != null) { 455 if (resultSolutions.ContainsKey(result.Key)) { 456 resultSolutions[result.Key].Add(gassistSolution); 457 } else { 458 resultSolutions.Add(result.Key, new List<IGAssistSolution>() { gassistSolution }); 459 } 460 } 461 } 462 List<IResult> aggregatedResults = new List<IResult>(); 463 foreach (KeyValuePair<string, List<IGAssistSolution>> solutions in resultSolutions) { 464 // clone manually to correctly clone references between cloned root objects 465 Cloner cloner = new Cloner(); 466 var problemDataClone = (IGAssistProblemData)cloner.Clone(Problem.ProblemData); 467 // set partitions of problem data clone correctly 468 problemDataClone.TrainingPartition.Start = SamplesStart.Value; problemDataClone.TrainingPartition.End = SamplesEnd.Value; 469 problemDataClone.TestPartition.Start = SamplesStart.Value; problemDataClone.TestPartition.End = SamplesEnd.Value; 470 // clone models 471 var ensembleSolution = new GAssistEnsembleSolution(problemDataClone); 472 ensembleSolution.AddGAssistSolutions(solutions.Value); 473 474 aggregatedResults.Add(new Result(solutions.Key + " (ensemble)", ensembleSolution)); 475 } 476 List<IResult> flattenedResults = new List<IResult>(); 477 CollectResultsRecursively("", aggregatedResults, flattenedResults); 478 return flattenedResults; 409 479 } 410 480 -
branches/LearningClassifierSystems/HeuristicLab.Algorithms.DataAnalysis/3.4/HeuristicLab.Algorithms.DataAnalysis-3.4.csproj
r9359 r9411 43 43 <DebugType>full</DebugType> 44 44 <Optimize>false</Optimize> 45 <OutputPath> $(SolutionDir)\bin\</OutputPath>45 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 46 46 <DefineConstants>DEBUG;TRACE</DefineConstants> 47 47 <ErrorReport>prompt</ErrorReport> … … 52 52 <DebugType>pdbonly</DebugType> 53 53 <Optimize>true</Optimize> 54 <OutputPath> $(SolutionDir)\bin\</OutputPath>54 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 55 55 <DefineConstants>TRACE</DefineConstants> 56 56 <ErrorReport>prompt</ErrorReport> … … 62 62 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> 63 63 <DebugSymbols>true</DebugSymbols> 64 <OutputPath> $(SolutionDir)\bin\</OutputPath>64 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 65 65 <DefineConstants>DEBUG;TRACE</DefineConstants> 66 66 <DebugType>full</DebugType> … … 70 70 </PropertyGroup> 71 71 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> 72 <OutputPath> $(SolutionDir)\bin\</OutputPath>72 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 73 73 <DefineConstants>TRACE</DefineConstants> 74 74 <DocumentationFile> … … 82 82 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> 83 83 <DebugSymbols>true</DebugSymbols> 84 <OutputPath> $(SolutionDir)\bin\</OutputPath>84 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 85 85 <DefineConstants>DEBUG;TRACE</DefineConstants> 86 86 <DebugType>full</DebugType> … … 90 90 </PropertyGroup> 91 91 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> 92 <OutputPath> $(SolutionDir)\bin\</OutputPath>92 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 93 93 <DefineConstants>TRACE</DefineConstants> 94 94 <DocumentationFile> … … 102 102 <ItemGroup> 103 103 <Reference Include="ALGLIB-3.7.0, Version=3.7.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 104 <HintPath>..\..\ bin\ALGLIB-3.7.0.dll</HintPath>104 <HintPath>..\..\..\..\trunk\sources\bin\ALGLIB-3.7.0.dll</HintPath> 105 105 <Private>False</Private> 106 106 </Reference> 107 107 <Reference Include="AutoDiff-1.0, Version=1.0.0.14388, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 108 108 <SpecificVersion>False</SpecificVersion> 109 <HintPath>..\..\bin\AutoDiff-1.0.dll</HintPath> 109 <HintPath>..\..\..\..\trunk\sources\bin\AutoDiff-1.0.dll</HintPath> 110 </Reference> 111 <Reference Include="HeuristicLab.Algorithms.GradientDescent-3.3"> 112 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Algorithms.GradientDescent-3.3.dll</HintPath> 113 </Reference> 114 <Reference Include="HeuristicLab.Analysis-3.3"> 115 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Analysis-3.3.dll</HintPath> 116 </Reference> 117 <Reference Include="HeuristicLab.Collections-3.3"> 118 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Collections-3.3.dll</HintPath> 119 </Reference> 120 <Reference Include="HeuristicLab.Common-3.3"> 121 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common-3.3.dll</HintPath> 122 </Reference> 123 <Reference Include="HeuristicLab.Common.Resources-3.3"> 124 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common.Resources-3.3.dll</HintPath> 125 </Reference> 126 <Reference Include="HeuristicLab.Data-3.3"> 127 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Data-3.3.dll</HintPath> 128 </Reference> 129 <Reference Include="HeuristicLab.Encodings.RealVectorEncoding-3.3"> 130 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Encodings.RealVectorEncoding-3.3.dll</HintPath> 131 </Reference> 132 <Reference Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4"> 133 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.dll</HintPath> 134 </Reference> 135 <Reference Include="HeuristicLab.Operators-3.3"> 136 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Operators-3.3.dll</HintPath> 137 </Reference> 138 <Reference Include="HeuristicLab.Optimization-3.3"> 139 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Optimization-3.3.dll</HintPath> 140 </Reference> 141 <Reference Include="HeuristicLab.Parameters-3.3"> 142 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Parameters-3.3.dll</HintPath> 143 </Reference> 144 <Reference Include="HeuristicLab.Persistence-3.3"> 145 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Persistence-3.3.dll</HintPath> 146 </Reference> 147 <Reference Include="HeuristicLab.PluginInfrastructure-3.3"> 148 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 149 </Reference> 150 <Reference Include="HeuristicLab.Problems.DataAnalysis.Symbolic-3.4"> 151 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.dll</HintPath> 152 </Reference> 153 <Reference Include="HeuristicLab.Problems.DataAnalysis.Symbolic.Classification-3.4"> 154 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Problems.DataAnalysis.Symbolic.Classification-3.4.dll</HintPath> 155 </Reference> 156 <Reference Include="HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4"> 157 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.dll</HintPath> 158 </Reference> 159 <Reference Include="HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis-3.4"> 160 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis-3.4.dll</HintPath> 161 </Reference> 162 <Reference Include="HeuristicLab.Problems.Instances-3.3"> 163 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Problems.Instances-3.3.dll</HintPath> 164 </Reference> 165 <Reference Include="HeuristicLab.Random-3.3"> 166 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Random-3.3.dll</HintPath> 110 167 </Reference> 111 168 <Reference Include="LibSVM-3.12, Version=3.12.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 112 <HintPath>..\..\ bin\LibSVM-3.12.dll</HintPath>169 <HintPath>..\..\..\..\trunk\sources\bin\LibSVM-3.12.dll</HintPath> 113 170 <Private>False</Private> 114 171 </Reference> … … 278 335 </ItemGroup> 279 336 <ItemGroup> 280 <ProjectReference Include="..\..\HeuristicLab.Algorithms.GradientDescent\3.3\HeuristicLab.Algorithms.GradientDescent-3.3.csproj">281 <Project>{1256B945-EEA9-4BE4-9880-76B5B113F089}</Project>282 <Name>HeuristicLab.Algorithms.GradientDescent</Name>283 <Private>False</Private>284 </ProjectReference>285 <ProjectReference Include="..\..\HeuristicLab.Analysis\3.3\HeuristicLab.Analysis-3.3.csproj">286 <Project>{887425B4-4348-49ED-A457-B7D2C26DDBF9}</Project>287 <Name>HeuristicLab.Analysis-3.3</Name>288 <Private>False</Private>289 </ProjectReference>290 <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj">291 <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project>292 <Name>HeuristicLab.Collections-3.3</Name>293 <Private>False</Private>294 </ProjectReference>295 <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj">296 <Project>{0E27A536-1C4A-4624-A65E-DC4F4F23E3E1}</Project>297 <Name>HeuristicLab.Common.Resources-3.3</Name>298 <Private>False</Private>299 </ProjectReference>300 <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">301 <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project>302 <Name>HeuristicLab.Common-3.3</Name>303 <Private>False</Private>304 </ProjectReference>305 337 <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj"> 306 338 <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project> … … 308 340 <Private>False</Private> 309 341 </ProjectReference> 310 <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj"> 311 <Project>{BBAB9DF5-5EF3-4BA8-ADE9-B36E82114937}</Project> 312 <Name>HeuristicLab.Data-3.3</Name> 313 <Private>False</Private> 342 <ProjectReference Include="..\..\HeuristicLab.Encodings.ConditionActionEncoding\3.3\HeuristicLab.Encodings.ConditionActionEncoding-3.3.csproj"> 343 <Project>{422fb262-0845-4969-8d16-12f057aa90b1}</Project> 344 <Name>HeuristicLab.Encodings.ConditionActionEncoding-3.3</Name> 314 345 </ProjectReference> 315 <ProjectReference Include="..\..\HeuristicLab.Encodings.RealVectorEncoding\3.3\HeuristicLab.Encodings.RealVectorEncoding-3.3.csproj"> 316 <Project>{BB6D334A-4BB6-4674-9883-31A6EBB32CAB}</Project> 317 <Name>HeuristicLab.Encodings.RealVectorEncoding-3.3</Name> 318 <Private>False</Private> 319 </ProjectReference> 320 <ProjectReference Include="..\..\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding\3.4\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.csproj"> 321 <Project>{06D4A186-9319-48A0-BADE-A2058D462EEA}</Project> 322 <Name>HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4</Name> 323 <Private>False</Private> 324 </ProjectReference> 325 <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj"> 326 <Project>{23DA7FF4-D5B8-41B6-AA96-F0561D24F3EE}</Project> 327 <Name>HeuristicLab.Operators-3.3</Name> 328 <Private>False</Private> 329 </ProjectReference> 330 <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj"> 331 <Project>{14AB8D24-25BC-400C-A846-4627AA945192}</Project> 332 <Name>HeuristicLab.Optimization-3.3</Name> 333 <Private>False</Private> 334 </ProjectReference> 335 <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj"> 336 <Project>{56F9106A-079F-4C61-92F6-86A84C2D84B7}</Project> 337 <Name>HeuristicLab.Parameters-3.3</Name> 338 <Private>False</Private> 339 </ProjectReference> 340 <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj"> 341 <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project> 342 <Name>HeuristicLab.Persistence-3.3</Name> 343 <Private>False</Private> 344 </ProjectReference> 345 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj"> 346 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project> 347 <Name>HeuristicLab.PluginInfrastructure-3.3</Name> 348 <Private>False</Private> 349 </ProjectReference> 350 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Symbolic.Classification\3.4\HeuristicLab.Problems.DataAnalysis.Symbolic.Classification-3.4.csproj"> 351 <Project>{05BAE4E1-A9FA-4644-AA77-42558720159E}</Project> 352 <Name>HeuristicLab.Problems.DataAnalysis.Symbolic.Classification-3.4</Name> 353 <Private>False</Private> 354 </ProjectReference> 355 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Symbolic.Regression\3.4\HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.csproj"> 356 <Project>{5AC82412-911B-4FA2-A013-EDC5E3F3FCC2}</Project> 357 <Name>HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4</Name> 358 <Private>False</Private> 359 </ProjectReference> 360 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis\3.4\HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis-3.4.csproj"> 361 <Project>{07486E68-1517-4B9D-A58D-A38E99AE71AB}</Project> 362 <Name>HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis-3.4</Name> 363 </ProjectReference> 364 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Symbolic\3.4\HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj"> 365 <Project>{3D28463F-EC96-4D82-AFEE-38BE91A0CA00}</Project> 366 <Name>HeuristicLab.Problems.DataAnalysis.Symbolic-3.4</Name> 367 <Private>False</Private> 346 <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators.LCS\3.3\HeuristicLab.Optimization.Operators.LCS-3.3.csproj"> 347 <Project>{f2c6d3b0-bd4f-4747-b13e-b18e53a2a09d}</Project> 348 <Name>HeuristicLab.Optimization.Operators.LCS-3.3</Name> 368 349 </ProjectReference> 369 350 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj"> 370 351 <Project>{DF87C13E-A889-46FF-8153-66DCAA8C5674}</Project> 371 352 <Name>HeuristicLab.Problems.DataAnalysis-3.4</Name> 372 <Private>False</Private>373 </ProjectReference>374 <ProjectReference Include="..\..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj">375 <Project>{3540E29E-4793-49E7-8EE2-FEA7F61C3994}</Project>376 <Name>HeuristicLab.Problems.Instances-3.3</Name>377 <Private>False</Private>378 </ProjectReference>379 <ProjectReference Include="..\..\HeuristicLab.Random\3.3\HeuristicLab.Random-3.3.csproj">380 <Project>{F4539FB6-4708-40C9-BE64-0A1390AEA197}</Project>381 <Name>HeuristicLab.Random-3.3</Name>382 353 <Private>False</Private> 383 354 </ProjectReference> -
branches/LearningClassifierSystems/HeuristicLab.Algorithms.GAssist/3.3/GAssist.cs
r9392 r9411 338 338 private void UpdateDiscretizers() { 339 339 // change to add more 340 DiscretizersParameter.Value.AddRange(ApplicationManager.Manager.GetInstances<IDiscretizer>()); 340 //DiscretizersParameter.Value.AddRange(ApplicationManager.Manager.GetInstances<IDiscretizer>()); 341 DiscretizersParameter.Value.Add(new UniformWidthDiscretizer(4)); 342 DiscretizersParameter.Value.Add(new UniformWidthDiscretizer(5)); 343 DiscretizersParameter.Value.Add(new UniformWidthDiscretizer(6)); 344 DiscretizersParameter.Value.Add(new UniformWidthDiscretizer(7)); 345 DiscretizersParameter.Value.Add(new UniformWidthDiscretizer(8)); 346 DiscretizersParameter.Value.Add(new UniformWidthDiscretizer(10)); 347 DiscretizersParameter.Value.Add(new UniformWidthDiscretizer(15)); 348 DiscretizersParameter.Value.Add(new UniformWidthDiscretizer(20)); 349 DiscretizersParameter.Value.Add(new UniformWidthDiscretizer(25)); 341 350 } 342 351 -
branches/LearningClassifierSystems/HeuristicLab.Algorithms.GAssist/3.3/HeuristicLab.Algorithms.GAssist-3.3.csproj
r9342 r9411 115 115 <Name>HeuristicLab.Optimization.Operators.LCS-3.3</Name> 116 116 </ProjectReference> 117 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj"> 118 <Project>{df87c13e-a889-46ff-8153-66dcaa8c5674}</Project> 119 <Name>HeuristicLab.Problems.DataAnalysis-3.4</Name> 120 </ProjectReference> 117 121 </ItemGroup> 118 122 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> -
branches/LearningClassifierSystems/HeuristicLab.Algorithms.LearningClassifierSystems/3.3/HeuristicLab.Algorithms.LearningClassifierSystems-3.3.csproj
r9342 r9411 133 133 <Private>False</Private> 134 134 </ProjectReference> 135 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj"> 136 <Project>{df87c13e-a889-46ff-8153-66dcaa8c5674}</Project> 137 <Name>HeuristicLab.Problems.DataAnalysis-3.4</Name> 138 </ProjectReference> 135 139 </ItemGroup> 136 140 <ItemGroup /> -
branches/LearningClassifierSystems/HeuristicLab.Encodings.CombinedIntegerVectorEncoding/3.3/HeuristicLab.Encodings.CombinedIntegerVectorEncoding-3.3.csproj
r9242 r9411 158 158 <Private>False</Private> 159 159 </ProjectReference> 160 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj"> 161 <Project>{df87c13e-a889-46ff-8153-66dcaa8c5674}</Project> 162 <Name>HeuristicLab.Problems.DataAnalysis-3.4</Name> 163 </ProjectReference> 160 164 </ItemGroup> 161 165 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> -
branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3/HeuristicLab.Encodings.ConditionActionEncoding-3.3.csproj
r9342 r9411 46 46 <Reference Include="HeuristicLab.Common-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 47 47 <Private>False</Private> 48 </Reference> 49 <Reference Include="HeuristicLab.Common.Resources-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 50 <SpecificVersion>False</SpecificVersion> 51 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common.Resources-3.3.dll</HintPath> 48 52 </Reference> 49 53 <Reference Include="HeuristicLab.Data-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> … … 98 102 <Compile Include="Deletion\CalculateNumberOfDeletionsOperator.cs" /> 99 103 <Compile Include="Deletion\XCSDeletionOperator.cs" /> 104 <Compile Include="Ensemble\ConditionActionEnsembleModel.cs" /> 105 <Compile Include="Ensemble\ConditionActionEnsembleProblemData.cs" /> 106 <Compile Include="Ensemble\ConditionActionEnsembleSolution.cs" /> 100 107 <Compile Include="Evaluators\XCSEvaluator.cs" /> 101 108 <Compile Include="Evaluators\IConditionActionEvaluator.cs" /> … … 105 112 <Compile Include="GA\XCSAfterCrossoverOperator.cs" /> 106 113 <Compile Include="IClassifier.cs" /> 114 <Compile Include="Interfaces\IConditionActionEnsembleModel.cs" /> 115 <Compile Include="Interfaces\IConditionActionEnsembleProblemData.cs" /> 116 <Compile Include="Interfaces\IConditionActionEnsembleSolution.cs" /> 107 117 <Compile Include="Interfaces\IConditionActionModel.cs" /> 108 118 <Compile Include="Interfaces\IConditionActionProblem.cs" /> … … 151 161 </ProjectReference> 152 162 </ItemGroup> 163 <ItemGroup /> 153 164 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 154 165 <PropertyGroup> -
branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3/Interfaces/IConditionActionProblem.cs
r9226 r9411 22 22 using HeuristicLab.Core; 23 23 using HeuristicLab.Optimization; 24 using HeuristicLab.Problems.DataAnalysis; 24 25 25 26 namespace HeuristicLab.Encodings.ConditionActionEncoding { 26 public interface IConditionActionProblem : IHeuristicOptimizationProblem {27 public interface IConditionActionProblem : IHeuristicOptimizationProblem, IDataAnalysisProblem { 27 28 string ChildName { get; } 28 29 29 IParameter ProblemDataParameter { get; } 30 IConditionActionProblemData ProblemData { get; } 30 new IConditionActionProblemData ProblemData { get; } 31 31 IParameter ActionExecuterParameter { get; } 32 32 IActionExecuter ActionExecuter { get; } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3/Interfaces/IConditionActionProblemData.cs
r9194 r9411 20 20 #endregion 21 21 22 using System;23 22 using System.Collections.Generic; 24 23 using HeuristicLab.Core; … … 27 26 28 27 namespace HeuristicLab.Encodings.ConditionActionEncoding { 29 public interface IConditionActionProblemData : INamedItem { 30 Dataset Dataset { get; } 28 public interface IConditionActionProblemData : IDataAnalysisProblemData { 31 29 ICheckedItemList<StringValue> ConditionVariables { get; } 32 30 ICheckedItemList<StringValue> ActionVariables { get; } 33 31 IEnumerable<string> AllowedConditionVariables { get; } 34 32 IEnumerable<string> AllowedActionVariables { get; } 35 36 IntRange TrainingPartition { get; }37 IntRange TestPartition { get; }38 39 IEnumerable<int> TrainingIndices { get; }40 IEnumerable<int> TestIndices { get; }41 42 bool IsTrainingSample(int index);43 bool IsTestSample(int index);44 33 45 34 IEnumerable<IInput> FetchInput(IEnumerable<int> rows); … … 49 38 IAction FetchAction(int rowNumber); 50 39 51 event EventHandler Changed;40 IClassifierComparer ClassifierComparer { get; } 52 41 } 53 42 } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3/Interfaces/IConditionActionSolution.cs
r9175 r9411 25 25 26 26 namespace HeuristicLab.Encodings.ConditionActionEncoding { 27 public interface IConditionActionSolution : I NamedItem, IStorableContent {27 public interface IConditionActionSolution : IItem, IStorableContent { 28 28 IConditionActionModel Model { get; } 29 29 IConditionActionProblemData ProblemData { get; set; } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3/XCSModel.cs
r9194 r9411 34 34 public int ClassifierCount { get { return Count; } } 35 35 36 public IClassifierComparer ClassifierComparer { get; set; } 36 [Storable] 37 private IClassifierComparer comparer; 38 public IClassifierComparer ClassifierComparer { 39 get { return comparer; } 40 set { comparer = value; } 41 } 37 42 38 43 [StorableConstructor] … … 42 47 name = (string)original.name.Clone(); 43 48 description = (string)original.description.Clone(); 49 if (original.comparer != null) { 50 comparer = (IClassifierComparer)original.comparer.Clone(); 51 } 44 52 } 45 53 public override IDeepCloneable Clone(Cloner cloner) { … … 67 75 } 68 76 69 if (matchedClassifiers.Count == 0) { return null; } 77 if (matchedClassifiers.Count == 0) { 78 return null; 79 } 70 80 71 81 IDictionary<IAction, double> predictionArray = CreatePredictionArray(matchedClassifiers); … … 74 84 75 85 private IDictionary<IAction, double> CreatePredictionArray(ItemCollection<XCSClassifier> matchedClassifiers) { 86 if (ClassifierComparer == null) { 87 throw new ArgumentException("No classifier comparer specified!"); 88 } 76 89 var predictionArray = new Dictionary<IAction, double>(ClassifierComparer); 77 90 var fitnessSumPerAction = new Dictionary<IAction, double>(ClassifierComparer); -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Action/IntAction.cs
r9352 r9411 34 34 35 35 public static IEqualityComparer<IGAssistNiche> Comparer { 36 get { return new DecisionListNicheComparer(); }36 get { return new GAssistNicheComparer(); } 37 37 } 38 38 IEqualityComparer<IGAssistNiche> IGAssistNiche.Comparer { -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Action/StringAction.cs
r9352 r9411 34 34 35 35 public static IEqualityComparer<IGAssistNiche> Comparer { 36 get { return new DecisionListNicheComparer(); }36 get { return new GAssistNicheComparer(); } 37 37 } 38 38 -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/DecisionList.cs
r9392 r9411 157 157 } 158 158 159 public IGAssistSolution CreateGAssistSolution(IGAssist NichesProblemData problemData) {159 public IGAssistSolution CreateGAssistSolution(IGAssistProblemData problemData) { 160 160 return new DecisionListSolution(this, problemData); 161 } 162 #endregion 163 164 #region IGAssistModel Members 165 IEnumerable<IGAssistNiche> IGAssistModel.Evaluate(IEnumerable<IGAssistInput> input) { 166 return Evaluate(input); 167 } 168 public IEnumerable<IGAssistNiche> Evaluate(IEnumerable<IGAssistInput> input, out ItemSet<IItem> aliveRules, out double theoryLength) { 169 return Evaluate(input, out aliveRules, out theoryLength); 161 170 } 162 171 #endregion -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/DecisionListSolution.cs
r9392 r9411 73 73 } 74 74 75 DecisionList IDecisionListSolution.Model {75 IGAssistModel IGAssistSolution.Model { 76 76 get { return Model; } 77 77 } … … 89 89 } 90 90 91 public IGAssist NichesProblemData ProblemData {92 get { return (IGAssist NichesProblemData)this[ProblemDataResultName].Value; }91 public IGAssistProblemData ProblemData { 92 get { return (IGAssistProblemData)this[ProblemDataResultName].Value; } 93 93 set { 94 94 if (this[ProblemDataResultName].Value != value) { … … 110 110 description = original.Description; 111 111 } 112 public DecisionListSolution(DecisionList model, IGAssist NichesProblemData problemData)112 public DecisionListSolution(DecisionList model, IGAssistProblemData problemData) 113 113 : base() { 114 114 name = ItemName; -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/HeuristicLab.Encodings.DecisionList-3.3.csproj
r9392 r9411 98 98 <Compile Include="DecisionListCrossover.cs" /> 99 99 <Compile Include="DecisionListManipulator.cs" /> 100 <Compile Include="DecisionListNicheComparer.cs" />101 100 <Compile Include="DecisionListSolution.cs" /> 102 101 <Compile Include="Evaluator\MDLEvaluator.cs" /> -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Interfaces/IDecisionListClassificationProblemData.cs
r9392 r9411 24 24 25 25 namespace HeuristicLab.Encodings.DecisionList { 26 public interface IDecisionListClassificationProblemData : IGAssist NichesProblemData {26 public interface IDecisionListClassificationProblemData : IGAssistProblemData { 27 27 IValueParameter<Rule> SampleRuleParameter { get; } 28 28 } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Interfaces/IDecisionListSolution.cs
r9392 r9411 25 25 namespace HeuristicLab.Encodings.DecisionList { 26 26 public interface IDecisionListSolution : IGAssistSolution { 27 DecisionList Model { get; } 28 //IDecisionListClassificationProblemData ProblemData { get; set; } 27 new DecisionList Model { get; } 29 28 30 29 event EventHandler ModelChanged; -
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Properties
-
Property
svn:ignore
set to
AssemblyInfo.cs
-
Property
svn:ignore
set to
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/HeuristicLab.Encodings.VariableVector-3.3.csproj
r9242 r9411 129 129 <Private>False</Private> 130 130 </ProjectReference> 131 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj"> 132 <Project>{df87c13e-a889-46ff-8153-66dcaa8c5674}</Project> 133 <Name>HeuristicLab.Problems.DataAnalysis-3.4</Name> 134 </ProjectReference> 131 135 </ItemGroup> 132 136 <ItemGroup /> -
branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/VariableVectorAction.cs
r9242 r9411 83 83 var targetCast = target as VariableVectorAction; 84 84 if (targetCast == null) { return false; } 85 if (!this.Order.SequenceEqual(targetCast.Order)) { return false; } 86 foreach (var keyValuePair in targetCast.VariableDictionary) { 87 if (!VariableDictionary[keyValuePair.Key].MatchVariable(keyValuePair.Value)) { 85 foreach (var key in targetCast.VariableDictionary.Keys) { 86 if (!VariableDictionary.ContainsKey(key) || !VariableDictionary[key].MatchVariable(targetCast.VariableDictionary[key])) { 88 87 return false; 89 88 } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/VariableVectorActionComparer.cs
r9392 r9411 42 42 43 43 public bool Equals(VariableVectorAction x, VariableVectorAction y) { 44 //if (!x.Order.SequenceEqual(y.Order)) return false;45 44 var xEnumerator = x.VariableDictionary.Keys.GetEnumerator(); 46 45 var yEnumerator = y.VariableDictionary.Keys.GetEnumerator(); 47 while (xEnumerator.MoveNext() && yEnumerator.MoveNext()) 48 foreach (var key in x.VariableDictionary.Keys) { 49 if (xEnumerator.Current != yEnumerator.Current || 50 !x.VariableDictionary[xEnumerator.Current].Identical(y.VariableDictionary[yEnumerator.Current])) { 51 return false; 52 } 46 while (xEnumerator.MoveNext() && yEnumerator.MoveNext()) { 47 if (xEnumerator.Current != yEnumerator.Current || 48 !x.VariableDictionary[xEnumerator.Current].Identical(y.VariableDictionary[yEnumerator.Current])) { 49 return false; 53 50 } 51 } 54 52 return !xEnumerator.MoveNext() && !yEnumerator.MoveNext(); 55 53 } -
branches/LearningClassifierSystems/HeuristicLab.Optimization.Operators.LCS/3.3/DefaultRule/DefaultRuleOperator.cs
r9352 r9411 42 42 get { return (IValueLookupParameter<IGAssistNiche>)Parameters["DefaultClass"]; } 43 43 } 44 public ILookupParameter<IGAssist NichesProblemData> GAssistNichesProblemDataParameter {45 get { return (ILookupParameter<IGAssist NichesProblemData>)Parameters["GAssistNichesProblemData"]; }44 public ILookupParameter<IGAssistProblemData> GAssistNichesProblemDataParameter { 45 get { return (ILookupParameter<IGAssistProblemData>)Parameters["GAssistNichesProblemData"]; } 46 46 } 47 47 public ILookupParameter<ItemArray<IGAssistIndividual>> IndividualParameter { … … 63 63 Parameters.Add(new ValueLookupParameter<IntValue>("Niches")); 64 64 Parameters.Add(new ValueLookupParameter<IGAssistNiche>("DefaultClass")); 65 Parameters.Add(new LookupParameter<IGAssist NichesProblemData>("GAssistNichesProblemData"));65 Parameters.Add(new LookupParameter<IGAssistProblemData>("GAssistNichesProblemData")); 66 66 Parameters.Add(new ScopeTreeLookupParameter<IGAssistIndividual>("Individual")); 67 67 Parameters.Add(new ValueLookupParameter<IOperator>("Evaluator")); -
branches/LearningClassifierSystems/HeuristicLab.Optimization.Operators.LCS/3.3/DefaultRule/IDefaultRuleOperator.cs
r9352 r9411 28 28 IValueLookupParameter<IntValue> NichesParameter { get; } 29 29 IValueLookupParameter<IGAssistNiche> DefaultClassParameter { get; } 30 ILookupParameter<IGAssist NichesProblemData> GAssistNichesProblemDataParameter { get; }30 ILookupParameter<IGAssistProblemData> GAssistNichesProblemDataParameter { get; } 31 31 ILookupParameter<ItemArray<IGAssistIndividual>> IndividualParameter { get; } 32 32 IValueLookupParameter<IOperator> EvaluatorParameter { get; } -
branches/LearningClassifierSystems/HeuristicLab.Optimization.Operators.LCS/3.3/Discretizer/InitializeDiscretizersOperator.cs
r9392 r9411 33 33 34 34 #region Parameter Properties 35 public ILookupParameter<IGAssist NichesProblemData> ProblemDataParameter {36 get { return (ILookupParameter<IGAssist NichesProblemData>)Parameters["ProblemData"]; }35 public ILookupParameter<IGAssistProblemData> ProblemDataParameter { 36 get { return (ILookupParameter<IGAssistProblemData>)Parameters["ProblemData"]; } 37 37 } 38 38 public ILookupParameter<ItemCollection<IDiscretizer>> DiscretizersParameter { … … 48 48 public InitializeDiscretizersOperator() 49 49 : base() { 50 Parameters.Add(new LookupParameter<IGAssist NichesProblemData>("ProblemData", ""));50 Parameters.Add(new LookupParameter<IGAssistProblemData>("ProblemData", "")); 51 51 Parameters.Add(new LookupParameter<ItemCollection<IDiscretizer>>("Discretizers", "")); 52 52 } -
branches/LearningClassifierSystems/HeuristicLab.Optimization.Operators.LCS/3.3/GAssist/ILAS/ILASOperator.cs
r9392 r9411 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 24 using System.Linq; 23 25 using HeuristicLab.Common; 24 26 using HeuristicLab.Core; … … 37 39 get { return (ILookupParameter<IRandom>)Parameters["Random"]; } 38 40 } 39 public ILookupParameter<IGAssist NichesProblemData> ProblemDataParameter {40 get { return (ILookupParameter<IGAssist NichesProblemData>)Parameters["ProblemData"]; }41 public ILookupParameter<IGAssistProblemData> ProblemDataParameter { 42 get { return (ILookupParameter<IGAssistProblemData>)Parameters["ProblemData"]; } 41 43 } 42 44 public IValueLookupParameter<IntValue> NumberOfStrataParameter { … … 56 58 : base() { 57 59 Parameters.Add(new LookupParameter<IRandom>("Random", "The random generator to use.")); 58 Parameters.Add(new LookupParameter<IGAssist NichesProblemData>("ProblemData", ""));60 Parameters.Add(new LookupParameter<IGAssistProblemData>("ProblemData", "")); 59 61 Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfStrata", "")); 60 62 Parameters.Add(new ValueLookupParameter<ItemList<ItemList<IntValue>>>("Strata", "")); … … 103 105 } 104 106 107 if (strata.Any(x => x.Count() == 0)) { 108 throw new ArgumentException("At least one strata is empty. Use less strata or add more data."); 109 } 110 105 111 StrataParameter.ActualValue = strata; 106 112 } -
branches/LearningClassifierSystems/HeuristicLab.Optimization.Operators.LCS/3.3/GAssist/Interfaces/IGAssistIndividual.cs
r9392 r9411 24 24 25 25 namespace HeuristicLab.Optimization.Operators.LCS { 26 public interface IGAssistIndividual : I Item{26 public interface IGAssistIndividual : IGAssistModel { 27 27 IGAssistNiche Niche { get; } 28 28 void SetNiche(IRandom random, IGAssistNiche niche); … … 30 30 void ApplyMerge(IRandom random, double probability); 31 31 void ApplyReinitialize(IRandom random, double probability, double oneProbability, IEnumerable<IDiscretizer> discretizers); 32 33 IGAssistSolution CreateGAssistSolution(IGAssistNichesProblemData problemData);34 32 } 35 33 } -
branches/LearningClassifierSystems/HeuristicLab.Optimization.Operators.LCS/3.3/GAssist/Interfaces/IGAssistSolution.cs
r9392 r9411 24 24 namespace HeuristicLab.Optimization.Operators.LCS { 25 25 public interface IGAssistSolution : IItem { 26 IGAssistModel Model { get; } 27 IGAssistProblemData ProblemData { get; set; } 28 26 29 double TrainingAccuracy { get; } 27 30 double TestAccuracy { get; } -
branches/LearningClassifierSystems/HeuristicLab.Optimization.Operators.LCS/3.3/GAssist/MDL/MDLIterationOperator.cs
r9392 r9411 56 56 get { return (ScopeTreeLookupParameter<IGAssistIndividual>)Parameters["Individual"]; } 57 57 } 58 public LookupParameter<IGAssist NichesProblemData> ProblemDataParameter {59 get { return (LookupParameter<IGAssist NichesProblemData>)Parameters["ProblemData"]; }58 public LookupParameter<IGAssistProblemData> ProblemDataParameter { 59 get { return (LookupParameter<IGAssistProblemData>)Parameters["ProblemData"]; } 60 60 } 61 61 public IScopeTreeLookupParameter<DoubleValue> QualityParameter { … … 82 82 83 83 Parameters.Add(new ScopeTreeLookupParameter<IGAssistIndividual>("Individual", "")); 84 Parameters.Add(new LookupParameter<IGAssist NichesProblemData>("ProblemData", ""));84 Parameters.Add(new LookupParameter<IGAssistProblemData>("ProblemData", "")); 85 85 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The qualities of the trees that should be analyzed.")); 86 86 Parameters.Add(new LookupParameter<BoolValue>("Maximization", "The direction of optimization.")); -
branches/LearningClassifierSystems/HeuristicLab.Optimization.Operators.LCS/3.3/HeuristicLab.Optimization.Operators.LCS-3.3.csproj
r9392 r9411 46 46 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common-3.3.dll</HintPath> 47 47 </Reference> 48 <Reference Include="HeuristicLab.Common.Resources-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 49 <SpecificVersion>False</SpecificVersion> 50 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common.Resources-3.3.dll</HintPath> 51 </Reference> 48 52 <Reference Include="HeuristicLab.Data-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 49 53 <SpecificVersion>False</SpecificVersion> … … 90 94 <Compile Include="DefaultRule\AutoDefaultRule.cs" /> 91 95 <Compile Include="Discretizer\InitializeDiscretizersOperator.cs" /> 92 <Compile Include="GAssist\IGAssistNichesProblemData.cs" /> 96 <Compile Include="GAssist\GAssistNicheComparer.cs" /> 97 <Compile Include="GAssist\Ensemble\GAssistEnsembleModel.cs" /> 98 <Compile Include="GAssist\Ensemble\GAssistEnsembleProblemData.cs" /> 99 <Compile Include="GAssist\Ensemble\GAssistEnsembleSolution.cs" /> 100 <Compile Include="GAssist\Interfaces\IGAssistEnsembleProblemData.cs" /> 101 <Compile Include="GAssist\Interfaces\IGAssistProblemData.cs" /> 93 102 <Compile Include="DefaultRule\MajorDefaultRule.cs" /> 94 103 <Compile Include="DefaultRule\DefaultRuleOperator.cs" /> … … 98 107 <Compile Include="Discretizer\UniformWidthDiscretizer.cs" /> 99 108 <Compile Include="Discretizer\IDiscretizer.cs" /> 100 <Compile Include="GAssist\I GAssistProblem.cs" />109 <Compile Include="GAssist\Interfaces\IGAssistProblem.cs" /> 101 110 <Compile Include="GAssist\ILAS\ILASOperator.cs" /> 111 <Compile Include="GAssist\Interfaces\IGAssistEnsembleModel.cs" /> 112 <Compile Include="GAssist\Interfaces\IGAssistEnsembleSolution.cs" /> 102 113 <Compile Include="GAssist\Interfaces\IGAssistIndividual.cs" /> 103 114 <Compile Include="GAssist\Interfaces\IGAssistIndividualCreator.cs" /> 104 115 <Compile Include="GAssist\Interfaces\IGAssistInput.cs" /> 116 <Compile Include="GAssist\Interfaces\IGAssistModel.cs" /> 105 117 <Compile Include="GAssist\Interfaces\IGAssistNiche.cs" /> 106 118 <Compile Include="GAssist\Interfaces\IGAssistNicheEqualityComparer.cs" /> … … 137 149 </ProjectReference> 138 150 </ItemGroup> 151 <ItemGroup /> 139 152 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 140 153 <PropertyGroup> -
branches/LearningClassifierSystems/HeuristicLab.Optimization.Operators.LCS/3.3/Selection/INichingSingleObjectiveSelector.cs
r9352 r9411 25 25 namespace HeuristicLab.Optimization.Operators.LCS { 26 26 public interface INichingSingleObjectiveSelector : ISingleObjectiveSelector { 27 ILookupParameter<IGAssist NichesProblemData> GAssistNichesProblemDataParameter { get; }27 ILookupParameter<IGAssistProblemData> GAssistNichesProblemDataParameter { get; } 28 28 ILookupParameter<BoolValue> NichingParameter { get; } 29 29 IValueLookupParameter<IntValue> ParentsPerChildParameter { get; } -
branches/LearningClassifierSystems/HeuristicLab.Optimization.Operators.LCS/3.3/Selection/NichingTournamentSelector.cs
r9392 r9411 39 39 get { return (ValueLookupParameter<IntValue>)Parameters["GroupSize"]; } 40 40 } 41 public ILookupParameter<IGAssist NichesProblemData> GAssistNichesProblemDataParameter {42 get { return (LookupParameter<IGAssist NichesProblemData>)Parameters["GAssistNichesProblemData"]; }41 public ILookupParameter<IGAssistProblemData> GAssistNichesProblemDataParameter { 42 get { return (LookupParameter<IGAssistProblemData>)Parameters["GAssistNichesProblemData"]; } 43 43 } 44 44 public ILookupParameter<BoolValue> NichingParameter { … … 61 61 : base() { 62 62 Parameters.Add(new ValueLookupParameter<IntValue>("GroupSize", "The size of the tournament group.", new IntValue(2))); 63 Parameters.Add(new LookupParameter<IGAssist NichesProblemData>("GAssistNichesProblemData", ""));63 Parameters.Add(new LookupParameter<IGAssistProblemData>("GAssistNichesProblemData", "")); 64 64 Parameters.Add(new LookupParameter<BoolValue>("Niching", "")); 65 65 Parameters.Add(new ValueLookupParameter<IntValue>("ParentsPerChild", "")); … … 143 143 } 144 144 } 145 146 145 return selected; 147 146 } -
branches/LearningClassifierSystems/HeuristicLab.Problems.CombinedIntegerVectorClassification/3.3/CombinedIntegerVectorClassificationProblem.cs
r9242 r9411 87 87 public CombinedIntegerVectorClassificationProblem(CombinedIntegerVectorClassificationProblemData problemData, XCSEvaluator evaluator, UniformRandomCombinedIntegerVectorCreator solutionCreator, ICoveringSolutionCreator coveringSolutionCreator) 88 88 : base(problemData, evaluator, solutionCreator, coveringSolutionCreator) { 89 Parameters.Add(new FixedValueParameter<CombinedIntegerVectorComparer>("ClassifierComparer", new CombinedIntegerVectorComparer()));89 Parameters.Add(new FixedValueParameter<CombinedIntegerVectorComparer>("ClassifierComparer", problemData.ConcreteClassifierComparer)); 90 90 Parameters.Add(new FixedValueParameter<ItemSet<IAction>>("PossibleActions", new ItemSet<IAction>(ClassifierComparer))); 91 91 Parameters.Add(new FixedValueParameter<ItemSet<CombinedIntegerVector>>("PossibleActionsConcreteClass", new ItemSet<CombinedIntegerVector>(ClassifierComparer))); -
branches/LearningClassifierSystems/HeuristicLab.Problems.CombinedIntegerVectorClassification/3.3/CombinedIntegerVectorClassificationProblemData.cs
r9352 r9411 54 54 get { return LengthParameter.Value; } 55 55 } 56 57 56 public IntValue ActionLength { 58 57 get { return ActionLengthParameter.Value; } 59 58 } 60 61 59 public IntMatrix Bounds { 62 60 get { return BoundsParameter.Value; } 61 } 62 public CombinedIntegerVectorComparer ConcreteClassifierComparer { 63 get { return new CombinedIntegerVectorComparer(); } 64 } 65 public override IClassifierComparer ClassifierComparer { 66 get { return ConcreteClassifierComparer; } 63 67 } 64 68 #endregion -
branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3/ConditionActionClassificationProblem.cs
r9342 r9411 29 29 using HeuristicLab.Parameters; 30 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 using HeuristicLab.Problems.DataAnalysis; 31 32 using HeuristicLab.Problems.Instances; 32 33 … … 82 83 83 84 #region properties 84 IParameter IConditionActionProblem.ProblemDataParameter {85 get { return ProblemDataParameter; }86 }87 85 IConditionActionProblemData IConditionActionProblem.ProblemData { 88 86 get { return ProblemData; } … … 234 232 ProblemData = data; 235 233 } 234 235 #region IDataAnalysisProblem Members 236 IParameter DataAnalysis.IDataAnalysisProblem.ProblemDataParameter { 237 get { return ProblemDataParameter; } 238 } 239 IDataAnalysisProblemData IDataAnalysisProblem.ProblemData { 240 get { return ProblemData; } 241 } 242 public event EventHandler ProblemDataChanged; 243 #endregion 236 244 } 237 245 } -
branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3/ConditionActionClassificationProblemData.cs
r9392 r9411 108 108 TestPartition.Start <= index && index < TestPartition.End; 109 109 } 110 111 public abstract IClassifierComparer ClassifierComparer { get; } 110 112 #endregion 111 113 … … 193 195 protected abstract void ActionConditionVariablesChanged(); 194 196 #endregion 197 198 #region IDataAnalysisProblemData Members 199 public bool IsEmpty { 200 get { return true; } 201 } 202 public ICheckedItemList<StringValue> InputVariables { 203 get { return ConditionVariables; } 204 } 205 public IEnumerable<string> AllowedInputVariables { 206 get { return AllowedConditionVariables; } 207 } 208 #endregion 195 209 } 196 210 } -
branches/LearningClassifierSystems/HeuristicLab.Problems.DecisionListClassification/3.3/DecisionListClassificationProblem.cs
r9392 r9411 146 146 autoDefaultRule.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName; 147 147 autoDefaultRule.GAssistNichesProblemDataParameter.ActualName = ProblemDataParameter.Name; 148 autoDefaultRule.NicheComparerParameter.Value = new DecisionListNicheComparer();148 autoDefaultRule.NicheComparerParameter.Value = new GAssistNicheComparer(); 149 149 foreach (IDefaultRuleOperator op in Operators.OfType<IDefaultRuleOperator>()) { 150 150 op.IndividualParameter.ActualName = SolutionCreator.DecisionListParameter.ActualName; … … 168 168 } 169 169 170 IParameter IGAssistProblem.ProblemDataParameter {171 get { return ProblemDataParameter; }172 }173 174 170 public string NichingParameterName { 175 171 get { return "Niching"; } … … 181 177 ProblemData = data; 182 178 } 179 180 #region IDataAnalysisProblem Members 181 IParameter IDataAnalysisProblem.ProblemDataParameter { 182 get { return ProblemDataParameter; } 183 } 184 IDataAnalysisProblemData IDataAnalysisProblem.ProblemData { 185 get { return ProblemData; } 186 } 187 public event System.EventHandler ProblemDataChanged; 188 #endregion 183 189 } 184 190 } -
branches/LearningClassifierSystems/HeuristicLab.Problems.DecisionListClassification/3.3/DecisionListClassificationProblemData.cs
r9392 r9411 287 287 } 288 288 #endregion 289 290 #region IDataAnalysisProblemData Members 291 public bool IsEmpty { 292 get { return true; } 293 } 294 public ICheckedItemList<StringValue> InputVariables { 295 get { return ConditionVariables; } 296 } 297 public IEnumerable<string> AllowedInputVariables { 298 get { return AllowedConditionVariables; } 299 } 300 #endregion 289 301 } 290 302 } -
branches/LearningClassifierSystems/HeuristicLab.Problems.VariableVectorClassification/3.3/VariableVectorClassificationProblem.cs
r9342 r9411 90 90 public VariableVectorClassificationProblem(VariableVectorClassificationProblemData problemData, XCSEvaluator evaluator, UniformRandomVariableVectorCreator solutionCreator, IVariableVectorCoveringCreator coveringSolutionCreator) 91 91 : base(problemData, evaluator, solutionCreator, coveringSolutionCreator) { 92 Parameters.Add(new FixedValueParameter<VariableVectorActionComparer>("ClassifierComparer", new VariableVectorActionComparer()));92 Parameters.Add(new FixedValueParameter<VariableVectorActionComparer>("ClassifierComparer", problemData.ConcreteClassifierComparer)); 93 93 Parameters.Add(new FixedValueParameter<ItemSet<IAction>>("PossibleActions", new ItemSet<IAction>(ClassifierComparer))); 94 94 Parameters.Add(new FixedValueParameter<ItemSet<VariableVectorAction>>("PossibleActionsConcreteClass", new ItemSet<VariableVectorAction>(ClassifierComparer))); -
branches/LearningClassifierSystems/HeuristicLab.Problems.VariableVectorClassification/3.3/VariableVectorClassificationProblemData.cs
r9392 r9411 53 53 public PercentValue SpreadPercentage { 54 54 get { return SpreadPercentageParameter.Value; } 55 } 56 57 public VariableVectorActionComparer ConcreteClassifierComparer { 58 get { return new VariableVectorActionComparer(); } 59 } 60 public override IClassifierComparer ClassifierComparer { 61 get { return ConcreteClassifierComparer; } 55 62 } 56 63 #endregion -
branches/LearningClassifierSystems/LearningClassifierSystem.sln
r9392 r9411 37 37 EndProject 38 38 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.Instances.LCS-3.3", "HeuristicLab.Problems.Instances.LCS\3.3\HeuristicLab.Problems.Instances.LCS-3.3.csproj", "{1CC7585E-DD22-41FA-869B-93DE41EA8936}" 39 EndProject 40 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Algorithms.DataAnalysis-3.4", "HeuristicLab.Algorithms.DataAnalysis\3.4\HeuristicLab.Algorithms.DataAnalysis-3.4.csproj", "{2E782078-FA81-4B70-B56F-74CE38DAC6C8}" 39 41 EndProject 40 42 Global … … 180 182 {1CC7585E-DD22-41FA-869B-93DE41EA8936}.Release|x64.ActiveCfg = Release|Any CPU 181 183 {1CC7585E-DD22-41FA-869B-93DE41EA8936}.Release|x86.ActiveCfg = Release|Any CPU 184 {2E782078-FA81-4B70-B56F-74CE38DAC6C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 185 {2E782078-FA81-4B70-B56F-74CE38DAC6C8}.Debug|Any CPU.Build.0 = Debug|Any CPU 186 {2E782078-FA81-4B70-B56F-74CE38DAC6C8}.Debug|x64.ActiveCfg = Debug|x64 187 {2E782078-FA81-4B70-B56F-74CE38DAC6C8}.Debug|x64.Build.0 = Debug|x64 188 {2E782078-FA81-4B70-B56F-74CE38DAC6C8}.Debug|x86.ActiveCfg = Debug|x86 189 {2E782078-FA81-4B70-B56F-74CE38DAC6C8}.Debug|x86.Build.0 = Debug|x86 190 {2E782078-FA81-4B70-B56F-74CE38DAC6C8}.Release|Any CPU.ActiveCfg = Release|Any CPU 191 {2E782078-FA81-4B70-B56F-74CE38DAC6C8}.Release|Any CPU.Build.0 = Release|Any CPU 192 {2E782078-FA81-4B70-B56F-74CE38DAC6C8}.Release|x64.ActiveCfg = Release|x64 193 {2E782078-FA81-4B70-B56F-74CE38DAC6C8}.Release|x64.Build.0 = Release|x64 194 {2E782078-FA81-4B70-B56F-74CE38DAC6C8}.Release|x86.ActiveCfg = Release|x86 195 {2E782078-FA81-4B70-B56F-74CE38DAC6C8}.Release|x86.Build.0 = Release|x86 182 196 EndGlobalSection 183 197 GlobalSection(SolutionProperties) = preSolution 184 198 HideSolutionNode = FALSE 185 199 EndGlobalSection 186 GlobalSection(Performance) = preSolution187 HasPerformanceSessions = true188 EndGlobalSection189 200 EndGlobal
Note: See TracChangeset
for help on using the changeset viewer.