Changeset 5500
- Timestamp:
- 02/17/11 00:59:36 (14 years ago)
- Location:
- branches/DataAnalysis Refactoring
- Files:
-
- 18 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification-3.4.csproj
r5474 r5500 209 209 </BootstrapperPackage> 210 210 </ItemGroup> 211 <ItemGroup /> 211 <ItemGroup> 212 <Folder Include="MultiObjective\" /> 213 <Folder Include="SingleObjective\Interfaces\" /> 214 </ItemGroup> 212 215 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 213 216 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.csproj
r5474 r5500 108 108 </ItemGroup> 109 109 <ItemGroup> 110 <Compile Include="Interfaces\ISymbolicRegressionEvaluator.cs" /> 111 <Compile Include="Interfaces\ISymbolicRegressionMultiObjectiveEvaluator.cs" /> 112 <Compile Include="Interfaces\ISymbolicRegressionSingleObjectiveEvaluator.cs" /> 113 <Compile Include="MultiObjective\Evaluators\SymbolicRegressionMultiObjectiveEvaluator.cs" /> 114 <Compile Include="SingleObjective\Evaluators\SymbolicRegressionSingleObjectiveEvaluator.cs" /> 115 <Compile Include="SingleObjective\Evaluators\SymbolicRegressionSingleObjectiveMeanSquaredErrorEvaluator.cs" /> 116 <Compile Include="SingleObjective\Evaluators\SymbolicRegressionSingleObjectivePearsonRSquaredEvaluator.cs" /> 110 117 <None Include="HeuristicLab.snk" /> 111 118 <None Include="HeuristicLabProblemsDataAnalysisSymbolicRegressionPlugin.cs.frame" /> … … 115 122 </ItemGroup> 116 123 <ItemGroup> 117 <ProjectReference Include="..\..\HeuristicLab.Analysis\3.3\HeuristicLab.Analysis-3.3.csproj">118 <Project>{887425B4-4348-49ED-A457-B7D2C26DDBF9}</Project>119 <Name>HeuristicLab.Analysis-3.3</Name>120 </ProjectReference>121 124 <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj"> 122 125 <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project> … … 139 142 <Name>HeuristicLab.Data-3.3</Name> 140 143 </ProjectReference> 141 <ProjectReference Include="..\..\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding\3.3\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.3.csproj"> 142 <Project>{125D3006-67F5-48CB-913E-73C0548F17FA}</Project> 143 <Name>HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.3</Name> 144 </ProjectReference> 145 <ProjectReference Include="..\..\HeuristicLab.ExtLibs\HeuristicLab.ALGLIB\3.1.0\ALGLIB-3.1.0\ALGLIB-3.1.0.csproj"> 146 <Project>{FC841674-62A7-4055-BE91-E41944B6C606}</Project> 147 <Name>ALGLIB-3.1.0</Name> 148 </ProjectReference> 149 <ProjectReference Include="..\..\HeuristicLab.ExtLibs\HeuristicLab.ALGLIB\3.1.0\HeuristicLab.ALGLIB-3.1.0\HeuristicLab.ALGLIB-3.1.0.csproj"> 150 <Project>{DE69A359-A5B8-4D3D-BA8D-D5780D7F96D6}</Project> 151 <Name>HeuristicLab.ALGLIB-3.1.0 %28HeuristicLab.ExtLibs\HeuristicLab.ALGLIB\HeuristicLab.ALGLIB-3.1.0\HeuristicLab.ALGLIB-3.1.0%29</Name> 144 <ProjectReference Include="..\..\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding\3.4\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.csproj"> 145 <Project>{06D4A186-9319-48A0-BADE-A2058D462EEA}</Project> 146 <Name>HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4</Name> 152 147 </ProjectReference> 153 148 <ProjectReference Include="..\..\HeuristicLab.ExtLibs\HeuristicLab.LibSVM\1.6.3\HeuristicLab.LibSVM-1.6.3\HeuristicLab.LibSVM-1.6.3.csproj"> … … 183 178 <Name>HeuristicLab.PluginInfrastructure-3.3</Name> 184 179 </ProjectReference> 185 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.3\HeuristicLab.Problems.DataAnalysis-3.3.csproj"> 186 <Project>{70DFD984-B1D9-46FE-8EB7-4DE92D71A9FC}</Project> 187 <Name>HeuristicLab.Problems.DataAnalysis-3.3</Name> 180 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Symbolic\3.4\HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj"> 181 <Project>{3D28463F-EC96-4D82-AFEE-38BE91A0CA00}</Project> 182 <Name>HeuristicLab.Problems.DataAnalysis.Symbolic-3.4</Name> 183 </ProjectReference> 184 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj"> 185 <Project>{DF87C13E-A889-46FF-8153-66DCAA8C5674}</Project> 186 <Name>HeuristicLab.Problems.DataAnalysis-3.4</Name> 188 187 </ProjectReference> 189 188 <ProjectReference Include="..\..\HeuristicLab.Random\3.3\HeuristicLab.Random-3.3.csproj"> -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj
r5498 r5500 111 111 <None Include="HeuristicLabProblemsDataAnalysisSymbolicPlugin.cs.frame" /> 112 112 <None Include="Properties\AssemblyInfo.frame" /> 113 <Compile Include="Evaluators\SymbolicDataAnalysisMultiObjectiveEvaluator.cs" /> 114 <Compile Include="Evaluators\SymbolicDataAnalysisSingleObjectiveEvaluator.cs" /> 115 <Compile Include="Evaluators\SymbolicDataAnalysisEvaluator.cs" /> 113 116 <Compile Include="HeuristicLabProblemsDataAnalysisSymbolicPlugin.cs" /> 117 <Compile Include="Interfaces\ISymbolicDataAnalysisInterpreterOperator.cs" /> 114 118 <Compile Include="Interfaces\ISymbolicDataAnalysisMultiObjectiveEvaluator.cs" /> 115 119 <Compile Include="Interfaces\ISymbolicDataAnalysisBoundedEvaluator.cs" /> … … 220 224 </ItemGroup> 221 225 <ItemGroup> 226 <Folder Include="Analyzers\" /> 222 227 <Folder Include="Grammars\" /> 223 228 </ItemGroup> -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interfaces/ISymbolicDataAnalysisEvaluator.cs
r5495 r5500 25 25 public interface ISymbolicDataAnalysisEvaluator : IDataAnalysisEvaluator { 26 26 ILookupParameter<SymbolicExpressionTree> SymbolicExpressionTreeParameter { get; } 27 IValueLookupParameter<IDataAnalysisProblemData> DataAnalysisProblemDataParameter { get; }28 27 IValueLookupParameter<IntValue> SamplesStartParameter { get; } 29 28 IValueLookupParameter<IntValue> SamplesEndParameter { get; } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/Classification/IClassificationEvaluator.cs
r5496 r5500 22 22 namespace HeuristicLab.Problems.DataAnalysis.Classification { 23 23 public interface IClassificationEvaluator : IDataAnalysisEvaluator { 24 new IClassificationProblemData ProblemData { get; } 24 25 } 25 26 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/IDataAnalysisEvaluator.cs
r5484 r5500 20 20 #endregion 21 21 22 using HeuristicLab.Core; 22 23 using HeuristicLab.Optimization; 23 24 24 25 namespace HeuristicLab.Problems.DataAnalysis { 25 26 public interface IDataAnalysisEvaluator : IEvaluator { 27 IValueLookupParameter<IDataAnalysisProblemData> ProblemDataParameter { get; } 28 IDataAnalysisProblemData ProblemData { get; } 26 29 } 27 30 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/IDataAnalysisProblemData.cs
r5494 r5500 27 27 Dataset Dataset { get; } 28 28 IEnumerable<string> InputVariables { get; } 29 30 int TrainingSamplesStart { get; } 31 int TrainingSamplesEnd { get; } 32 int TestSamplesStart { get; } 33 int TestSamplesEnd { get; } 29 34 } 30 35 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/Regression/IRegressionEvaluator.cs
r5496 r5500 22 22 namespace HeuristicLab.Problems.DataAnalysis { 23 23 public interface IRegressionEvaluator : IDataAnalysisEvaluator { 24 new IRegressionProblemData ProblemData { get; } 24 25 } 25 26 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/Regression/IRegressionProblem.cs
r5496 r5500 21 21 22 22 namespace HeuristicLab.Problems.DataAnalysis { 23 public interface IRegression nProblem : IDataAnalysisProblem {23 public interface IRegressionProblem : IDataAnalysisProblem { 24 24 new IRegressionProblemData ProblemData { get; } 25 25 new IRegressionEvaluator Evaluator { get; } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/Regression/IRegressionSolution.cs
r5496 r5500 23 23 public interface IClassificationSolution : IDataAnalysisSolution { 24 24 new IRegressionModel Model { get; } 25 new IRegressionProblemData Problem { get; }25 new IRegressionProblemData ProblemData { get; } 26 26 } 27 27 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/OnlineEvaluators/OnlineMeanSquaredErrorEvaluator.cs
r5491 r5500 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 24 25 namespace HeuristicLab.Problems.DataAnalysis { … … 60 61 } 61 62 #endregion 63 64 public static double Calculate(IEnumerable<double> first, IEnumerable<double> second) { 65 IEnumerator<double> firstEnumerator = first.GetEnumerator(); 66 IEnumerator<double> secondEnumerator = second.GetEnumerator(); 67 OnlineMeanSquaredErrorEvaluator mseEvaluator = new OnlineMeanSquaredErrorEvaluator(); 68 69 while (firstEnumerator.MoveNext() & secondEnumerator.MoveNext()) { 70 double estimated = secondEnumerator.Current; 71 double original = firstEnumerator.Current; 72 mseEvaluator.Add(original, estimated); 73 } 74 75 if (secondEnumerator.MoveNext() || firstEnumerator.MoveNext()) { 76 throw new ArgumentException("Number of elements in first and second enumeration doesn't match."); 77 } else { 78 return mseEvaluator.MeanSquaredError; 79 } 80 } 62 81 } 63 82 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/OnlineEvaluators/OnlinePearsonsRSquaredEvaluator.cs
r5490 r5500 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using HeuristicLab.Common; 24 25 … … 68 69 return double.IsNaN(x) || double.IsInfinity(x); 69 70 } 71 72 public static double Calculate(IEnumerable<double> first, IEnumerable<double> second) { 73 IEnumerator<double> firstEnumerator = first.GetEnumerator(); 74 IEnumerator<double> secondEnumerator = second.GetEnumerator(); 75 OnlinePearsonsRSquaredEvaluator rSquaredEvaluator = new OnlinePearsonsRSquaredEvaluator(); 76 77 while (firstEnumerator.MoveNext() & secondEnumerator.MoveNext()) { 78 double estimated = secondEnumerator.Current; 79 double original = firstEnumerator.Current; 80 rSquaredEvaluator.Add(original, estimated); 81 } 82 83 if (secondEnumerator.MoveNext() || firstEnumerator.MoveNext()) { 84 throw new ArgumentException("Number of elements in first and second enumeration doesn't match."); 85 } else { 86 return rSquaredEvaluator.RSquared; 87 } 88 } 70 89 } 71 90 }
Note: See TracChangeset
for help on using the changeset viewer.