- Timestamp:
- 03/26/14 16:37:02 (11 years ago)
- 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 160 160 <Private>False</Private> 161 161 </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> 162 166 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj"> 163 167 <Project>{df87c13e-a889-46ff-8153-66dcaa8c5674}</Project> -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingContext.cs
r10617 r10673 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; 25 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 25 26 using HeuristicLab.Optimization; 26 27 using HeuristicLab.Problems.DataAnalysis; 28 using HeuristicLab.Problems.DataAnalysis.Symbolic; 27 29 28 30 namespace HeuristicLab.DataPreprocessing { … … 37 39 public IAlgorithm Algorithm { get; private set; } 38 40 39 public I DataAnalysisProblem Problem { get; private set; }41 public ISymbolicDataAnalysisProblem Problem { get; private set; } 40 42 41 public PreprocessingContext(IDataAnalysisProblemData dataAnalysisProblemData, IAlgorithm algorithm, I DataAnalysisProblem problem) {43 public PreprocessingContext(IDataAnalysisProblemData dataAnalysisProblemData, IAlgorithm algorithm, ISymbolicDataAnalysisProblem problem) { 42 44 Data = new TransactionalPreprocessingData(dataAnalysisProblemData); 43 45 DataAnalysisProblemData = dataAnalysisProblemData; … … 72 74 } 73 75 74 private I DataAnalysisProblem SetupProblem(IProblem problem) {75 return (I DataAnalysisProblem)problem;76 private ISymbolicDataAnalysisProblem SetupProblem(IProblem problem) { 77 return (ISymbolicDataAnalysisProblem)problem; 76 78 } 77 private I DataAnalysisProblem SetupAlgorithm(IAlgorithm algorithm) {79 private ISymbolicDataAnalysisProblem SetupAlgorithm(IAlgorithm algorithm) { 78 80 algorithm.Name = algorithm.Name + "(Preprocessed)"; 79 81 algorithm.Runs.Clear(); 80 return (I DataAnalysisProblem)algorithm.Problem;82 return (ISymbolicDataAnalysisProblem)algorithm.Problem; 81 83 } 82 private T Export<T>(T original, Func<T, I DataAnalysisProblem> setup)84 private T Export<T>(T original, Func<T, ISymbolicDataAnalysisProblem> setup) 83 85 where T : IItem { 84 86 var creator = new ProblemDataCreator(this); … … 91 93 problem.Name = "Preprocessed " + problem.Name; 92 94 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 93 102 return clone; 94 103 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IPreprocessingContext.cs
r10617 r10673 24 24 using HeuristicLab.Optimization; 25 25 using HeuristicLab.Problems.DataAnalysis; 26 using HeuristicLab.Problems.DataAnalysis.Symbolic; 26 27 27 28 namespace HeuristicLab.DataPreprocessing { … … 36 37 IAlgorithm Algorithm { get; } 37 38 38 I DataAnalysisProblem Problem { get; }39 ISymbolicDataAnalysisProblem Problem { get; } 39 40 40 41 IItem ExportAlgorithmOrProblem(); -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Plugin.cs.frame
r10671 r10673 41 41 [PluginDependency("HeuristicLab.Problems.DataAnalysis","3.4")] 42 42 [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")] 45 46 public class HeuristicLabDataPreprocessingPlugin : PluginBase { 46 47 }
Note: See TracChangeset
for help on using the changeset viewer.