Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/21/11 16:23:48 (13 years ago)
Author:
sforsten
Message:

#1669: benchmark problems of Nguyen, Korns and Keijzer from http://groups.csail.mit.edu/EVO-DesignOpt/GPBenchmarks/ have been added. The benchmark problems from http://www.vanillamodeling.com/ have been adapted to the ones from Vladislavleva.

Not all benchmarks are working correctly so far, but they will be tested soon.

Location:
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationProblem.cs

    r6968 r7025  
    2020#endregion
    2121
    22 using System.Collections.Generic;
    2322using HeuristicLab.Common;
    2423using HeuristicLab.Core;
    2524using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    26 using HeuristicLab.PluginInfrastructure;
    2725
    2826namespace HeuristicLab.Problems.DataAnalysis {
     
    4543      ProblemData = problemData;
    4644    }
    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     }
    5545  }
    5646}
  • branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Clustering/ClusteringProblem.cs

    r6968 r7025  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    25 using HeuristicLab.PluginInfrastructure;
    2625
    2726namespace HeuristicLab.Problems.DataAnalysis {
     
    4443      ProblemData = problemData;
    4544    }
    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     }
    5445  }
    5546}
  • branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblem.cs

    r6968 r7025  
    2121
    2222using System;
    23 using System.Collections.Generic;
    2423using HeuristicLab.Common;
    2524using HeuristicLab.Core;
     
    4645    IDataAnalysisProblemData IDataAnalysisProblem.ProblemData {
    4746      get { return ProblemData; }
     47      set { ProblemData = (T)value; }
    4848    }
    4949    public T ProblemData {
     
    9393
    9494    public abstract void ImportProblemDataFromFile(string fileName);
    95 
    96     public abstract void CreateProblemDataFromBenchmark(IDataAnalysisBenchmarkProblemDataGenerator benchmarkGenerator);
    97 
    98     public abstract IEnumerable<IDataAnalysisBenchmarkProblemDataGenerator> GetBenchmarkProblemDataGenerators();
    9995  }
    10096}
  • branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblem.cs

    r6968 r7025  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    2422using HeuristicLab.Common;
    2523using HeuristicLab.Core;
    2624using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    27 using HeuristicLab.PluginInfrastructure;
    2825
    2926namespace HeuristicLab.Problems.DataAnalysis {
     
    4643      ProblemData = problemData;
    4744    }
    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     }
    6545  }
    6646}
  • branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/TimeSeriesPrognosis/TimeSeriesPrognosisProblem.cs

    r6968 r7025  
    2020#endregion
    2121
    22 using System.Collections.Generic;
    2322using HeuristicLab.Common;
    2423using HeuristicLab.Core;
    2524using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    26 using HeuristicLab.PluginInfrastructure;
    2725
    2826namespace HeuristicLab.Problems.DataAnalysis {
     
    4543      ProblemData = problemData;
    4644    }
    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     }
    5545  }
    5646}
  • branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/IDataAnalysisProblem.cs

    r6968 r7025  
    2121
    2222using System;
    23 using System.Collections.Generic;
    2423using HeuristicLab.Core;
    2524using HeuristicLab.Optimization;
     
    2827  public interface IDataAnalysisProblem : IProblem {
    2928    IParameter ProblemDataParameter { get; }
    30     IDataAnalysisProblemData ProblemData { get; }
     29    IDataAnalysisProblemData ProblemData { get; set; }
    3130    event EventHandler ProblemDataChanged;
    3231
    3332    void ImportProblemDataFromFile(string fileName);
    34     void CreateProblemDataFromBenchmark(IDataAnalysisBenchmarkProblemDataGenerator benchmarkGenerator);
    35     IEnumerable<IDataAnalysisBenchmarkProblemDataGenerator> GetBenchmarkProblemDataGenerators();
    3633  }
    3734
Note: See TracChangeset for help on using the changeset viewer.