Changeset 6968 for branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
- Timestamp:
- 11/08/11 13:18:49 (13 years ago)
- Location:
- branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationProblem.cs
r5809 r6968 20 20 #endregion 21 21 22 using System.Collections.Generic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.PluginInfrastructure; 25 27 26 28 namespace HeuristicLab.Problems.DataAnalysis { … … 43 45 ProblemData = problemData; 44 46 } 47 48 public override void CreateProblemDataFromBenchmark(IDataAnalysisBenchmarkProblemDataGenerator benchmarkGenerator) { 49 throw new System.NotImplementedException(); 50 } 51 52 public override IEnumerable<IDataAnalysisBenchmarkProblemDataGenerator> GetBenchmarkProblemDataGenerators() { 53 return ApplicationManager.Manager.GetInstances<IClassificationBenchmarkProblemDataGenerator>(); 54 } 45 55 } 46 56 } -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Clustering/ClusteringProblem.cs
r5809 r6968 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 25 using HeuristicLab.PluginInfrastructure; 25 26 26 27 namespace HeuristicLab.Problems.DataAnalysis { … … 43 44 ProblemData = problemData; 44 45 } 46 47 public override void CreateProblemDataFromBenchmark(IDataAnalysisBenchmarkProblemDataGenerator benchmarkGenerator) { 48 throw new System.NotImplementedException(); 49 } 50 51 public override System.Collections.Generic.IEnumerable<IDataAnalysisBenchmarkProblemDataGenerator> GetBenchmarkProblemDataGenerators() { 52 return ApplicationManager.Manager.GetInstances<IClusteringBenchmarkProblemDataGenerator>(); 53 } 45 54 } 46 55 } -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblem.cs
r6635 r6968 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; … … 92 93 93 94 public abstract void ImportProblemDataFromFile(string fileName); 95 96 public abstract void CreateProblemDataFromBenchmark(IDataAnalysisBenchmarkProblemDataGenerator benchmarkGenerator); 97 98 public abstract IEnumerable<IDataAnalysisBenchmarkProblemDataGenerator> GetBenchmarkProblemDataGenerators(); 94 99 } 95 100 } -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblem.cs
r5809 r6968 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 22 24 using HeuristicLab.Common; 23 25 using HeuristicLab.Core; 24 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using HeuristicLab.PluginInfrastructure; 25 28 26 29 namespace HeuristicLab.Problems.DataAnalysis { … … 43 46 ProblemData = problemData; 44 47 } 48 49 public override IEnumerable<IDataAnalysisBenchmarkProblemDataGenerator> GetBenchmarkProblemDataGenerators() { 50 return ApplicationManager.Manager.GetInstances<IRegressionBenchmarkProblemDataGenerator>(); 51 } 52 53 public override void CreateProblemDataFromBenchmark(IDataAnalysisBenchmarkProblemDataGenerator benchmarkGenerator) { 54 if (!(benchmarkGenerator is IRegressionBenchmarkProblemDataGenerator)) { 55 throw new ArgumentException("BenchmarkGenerator is not an IRegressionBenchmarkProblemDataGenerator."); 56 } 57 58 IDataAnalysisProblemData problemData = benchmarkGenerator.GenerateProblemData(); 59 60 if (problemData is IRegressionProblemData) 61 ProblemData = (IRegressionProblemData)problemData; 62 else 63 throw new InvalidCastException("ProblemDataGenerator didn't return an IRegressionProblemData."); 64 } 45 65 } 46 66 } -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/TimeSeriesPrognosis/TimeSeriesPrognosisProblem.cs
r6802 r6968 20 20 #endregion 21 21 22 using System.Collections.Generic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.PluginInfrastructure; 25 27 26 28 namespace HeuristicLab.Problems.DataAnalysis { … … 43 45 ProblemData = problemData; 44 46 } 47 48 public override void CreateProblemDataFromBenchmark(IDataAnalysisBenchmarkProblemDataGenerator benchmarkGenerator) { 49 throw new System.NotImplementedException(); 50 } 51 52 public override IEnumerable<IDataAnalysisBenchmarkProblemDataGenerator> GetBenchmarkProblemDataGenerators() { 53 return ApplicationManager.Manager.GetInstances<ITimeSeriesBenchmarkProblemDataGenerator>(); 54 } 45 55 } 46 56 }
Note: See TracChangeset
for help on using the changeset viewer.