Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/26/14 16:37:02 (11 years ago)
Author:
pfleck
Message:
  • Preprocessing Plugin now uses ISymbolicDataAnalysisProblem instead of IDataAnalysisProblem
  • Added TransformationCollection to ISymbolicDataAnalysisProblem as hidden parameter
Location:
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/HeuristicLab.DataPreprocessing-3.3.csproj

    r10671 r10673  
    160160      <Private>False</Private>
    161161    </ProjectReference>
     162    <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Symbolic\3.4\HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj">
     163      <Project>{3d28463f-ec96-4d82-afee-38be91a0ca00}</Project>
     164      <Name>HeuristicLab.Problems.DataAnalysis.Symbolic-3.4</Name>
     165    </ProjectReference>
    162166    <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj">
    163167      <Project>{df87c13e-a889-46ff-8153-66dcaa8c5674}</Project>
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingContext.cs

    r10617 r10673  
    2323using HeuristicLab.Common;
    2424using HeuristicLab.Core;
     25using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2526using HeuristicLab.Optimization;
    2627using HeuristicLab.Problems.DataAnalysis;
     28using HeuristicLab.Problems.DataAnalysis.Symbolic;
    2729
    2830namespace HeuristicLab.DataPreprocessing {
     
    3739    public IAlgorithm Algorithm { get; private set; }
    3840
    39     public IDataAnalysisProblem Problem { get; private set; }
     41    public ISymbolicDataAnalysisProblem Problem { get; private set; }
    4042
    41     public PreprocessingContext(IDataAnalysisProblemData dataAnalysisProblemData, IAlgorithm algorithm, IDataAnalysisProblem problem) {
     43    public PreprocessingContext(IDataAnalysisProblemData dataAnalysisProblemData, IAlgorithm algorithm, ISymbolicDataAnalysisProblem problem) {
    4244      Data = new TransactionalPreprocessingData(dataAnalysisProblemData);
    4345      DataAnalysisProblemData = dataAnalysisProblemData;
     
    7274    }
    7375
    74     private IDataAnalysisProblem SetupProblem(IProblem problem) {
    75       return (IDataAnalysisProblem)problem;
     76    private ISymbolicDataAnalysisProblem SetupProblem(IProblem problem) {
     77      return (ISymbolicDataAnalysisProblem)problem;
    7678    }
    77     private IDataAnalysisProblem SetupAlgorithm(IAlgorithm algorithm) {
     79    private ISymbolicDataAnalysisProblem SetupAlgorithm(IAlgorithm algorithm) {
    7880      algorithm.Name = algorithm.Name + "(Preprocessed)";
    7981      algorithm.Runs.Clear();
    80       return (IDataAnalysisProblem)algorithm.Problem;
     82      return (ISymbolicDataAnalysisProblem)algorithm.Problem;
    8183    }
    82     private T Export<T>(T original, Func<T, IDataAnalysisProblem> setup)
     84    private T Export<T>(T original, Func<T, ISymbolicDataAnalysisProblem> setup)
    8385        where T : IItem {
    8486      var creator = new ProblemDataCreator(this);
     
    9193      problem.Name = "Preprocessed " + problem.Name;
    9294
     95      var tree = new SymbolicExpressionTree(new ProgramRootSymbol().CreateTreeNode());
     96      var variableNode = (VariableTreeNode)new HeuristicLab.Problems.DataAnalysis.Symbolic.Variable("dummy", "dummy description").CreateTreeNode();
     97      variableNode.VariableName = "dummy";
     98      tree.Root.AddSubtree(variableNode);
     99
     100      problem.TransformationsParameter.Value.Add(tree);
     101
    93102      return clone;
    94103    }
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IPreprocessingContext.cs

    r10617 r10673  
    2424using HeuristicLab.Optimization;
    2525using HeuristicLab.Problems.DataAnalysis;
     26using HeuristicLab.Problems.DataAnalysis.Symbolic;
    2627
    2728namespace HeuristicLab.DataPreprocessing {
     
    3637    IAlgorithm Algorithm { get; }
    3738
    38     IDataAnalysisProblem Problem { get; }
     39    ISymbolicDataAnalysisProblem Problem { get; }
    3940
    4041    IItem ExportAlgorithmOrProblem();
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Plugin.cs.frame

    r10671 r10673  
    4141  [PluginDependency("HeuristicLab.Problems.DataAnalysis","3.4")]
    4242  [PluginDependency("HeuristicLab.Problems.DataAnalysis.Views","3.4")]
    43   [PluginDependency("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding","3.4")]
    44   [PluginDependency("HeuristicLab.Parameters","3.4")]
     43  [PluginDependency("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding", "3.4")]
     44  [PluginDependency("HeuristicLab.Problems.DataAnalysis.Symbolic", "3.4")]
     45  [PluginDependency("HeuristicLab.Parameters","3.3")]
    4546  public class HeuristicLabDataPreprocessingPlugin : PluginBase {
    4647  }
Note: See TracChangeset for help on using the changeset viewer.