Changeset 17520
- Timestamp:
- 04/27/20 16:23:50 (5 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/GaussianProcessCovarianceOptimizationProblem.cs
r17382 r17520 104 104 105 105 #region Parameter Properties 106 IParameter IDataAnalysisProblem.ProblemDataParameter { get { return ProblemDataParameter; } }107 108 106 public IValueParameter<IRegressionProblemData> ProblemDataParameter { 109 107 get { return (IValueParameter<IRegressionProblemData>)Parameters[ProblemDataParameterName]; } -
branches/2521_ProblemRefactoring/HeuristicLab.DataPreprocessing/3.4/HeuristicLab.DataPreprocessing-3.4.csproj
r16723 r17520 73 73 </PropertyGroup> 74 74 <ItemGroup> 75 <Reference Include="Microsoft.CSharp" /> 75 76 <Reference Include="System" /> 76 77 <Reference Include="System.Core" /> -
branches/2521_ProblemRefactoring/HeuristicLab.DataPreprocessing/3.4/PreprocessingContext.cs
r17226 r17520 111 111 preprocessedAlgorithm.Name = preprocessedAlgorithm.Name + "(Preprocessed)"; 112 112 preprocessedAlgorithm.Runs.Clear(); 113 var problem = (IDataAnalysisProblem)preprocessedAlgorithm.Problem;114 problem.ProblemData Parameter.ActualValue =CreateNewProblemData();113 dynamic problem = preprocessedAlgorithm.Problem; 114 problem.ProblemData = (dynamic) CreateNewProblemData(); 115 115 return preprocessedAlgorithm; 116 116 } 117 117 private IDataAnalysisProblem ExportProblem(IDataAnalysisProblem source) { 118 varpreprocessedProblem = (IDataAnalysisProblem)source.Clone();119 preprocessedProblem.ProblemData Parameter.ActualValue =CreateNewProblemData();118 dynamic preprocessedProblem = (IDataAnalysisProblem)source.Clone(); 119 preprocessedProblem.ProblemData = (dynamic)CreateNewProblemData(); 120 120 return preprocessedProblem; 121 121 } -
branches/2521_ProblemRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionTreeProblem.cs
r17229 r17520 46 46 } 47 47 48 protected SymbolicExpressionTreeProblem() : this(new SymbolicExpressionTreeEncoding()) { } 48 49 protected SymbolicExpressionTreeProblem(SymbolicExpressionTreeEncoding encoding) 49 50 : base(encoding) { -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionSingleObjectiveProblem.cs
r17226 r17520 21 21 22 22 using System.Linq; 23 using HEAL.Attic; 23 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; 25 26 using HeuristicLab.Optimization; 26 27 using HeuristicLab.Parameters; 27 using HEAL.Attic;28 28 29 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression { -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs
r17457 r17520 70 70 71 71 #region parameter properties 72 IParameter IDataAnalysisProblem.ProblemDataParameter {73 get { return ProblemDataParameter; }74 }75 72 public IValueParameter<T> ProblemDataParameter { 76 73 get { return (IValueParameter<T>)Parameters[ProblemDataParameterName]; } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis.Views/3.4/HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj
r16723 r17520 103 103 <Private>False</Private> 104 104 </Reference> 105 <Reference Include="Microsoft.CSharp" /> 105 106 <Reference Include="System" /> 106 107 <Reference Include="System.Core"> -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis.Views/3.4/MenuItems/ChangeDataOfOptimizersMenuItem.cs
r17226 r17520 109 109 if (problemData == null) throw new ArgumentNullException("problemData"); 110 110 111 var problem = algorithm.Problem as IDataAnalysisProblem;112 if (problem != null) problem.ProblemDataParameter.ActualValue =problemData;111 dynamic problem = algorithm.Problem; 112 problem.ProblemData = (dynamic) problemData; 113 113 } 114 114 } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblem.cs
r17226 r17520 21 21 22 22 using System; 23 using HEAL.Attic; 23 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; 25 26 using HeuristicLab.Optimization; 26 27 using HeuristicLab.Parameters; 27 using HEAL.Attic;28 28 using HeuristicLab.Problems.Instances; 29 29 … … 36 36 private const string ProblemDataParameterDescription = "The data set, target variable and input variables of the data analysis problem."; 37 37 #region parameter properties 38 IParameter IDataAnalysisProblem.ProblemDataParameter {39 get { return ProblemDataParameter; }40 }41 38 public IValueParameter<T> ProblemDataParameter { 42 39 get { return (IValueParameter<T>)Parameters[ProblemDataParameterName]; } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/IDataAnalysisProblem.cs
r17515 r17520 29 29 [StorableType("74e4c570-3881-4bfa-a5bb-2bb71cdee2b3")] 30 30 public interface IDataAnalysisProblem : IProblem { 31 IParameter ProblemDataParameter { get; }32 31 IDataAnalysisProblemData ProblemData { get; } 33 32 event EventHandler ProblemDataChanged; … … 37 36 public interface IDataAnalysisProblem<T> : IDataAnalysisProblem 38 37 where T : class, IDataAnalysisProblemData { 39 newIValueParameter<T> ProblemDataParameter { get; }38 IValueParameter<T> ProblemDataParameter { get; } 40 39 new T ProblemData { get; set; } 41 40 } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/BasicSymbolicRegression/Problem.cs
r17382 r17520 45 45 46 46 #region Parameter Properties 47 IParameter IDataAnalysisProblem.ProblemDataParameter { get { return ProblemDataParameter; } }48 49 47 public IValueParameter<IRegressionProblemData> ProblemDataParameter { 50 48 get { return (IValueParameter<IRegressionProblemData>)Parameters[ProblemDataParameterName]; } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.GrammaticalEvolution/3.4/SymbolicRegression/GESymbolicDataAnalysisProblem.cs
r17226 r17520 74 74 75 75 #region parameter properties 76 IParameter IDataAnalysisProblem.ProblemDataParameter {77 get { return ProblemDataParameter; }78 }79 76 public IValueParameter<T> ProblemDataParameter { 80 77 get { return (IValueParameter<T>)Parameters[ProblemDataParameterName]; }
Note: See TracChangeset
for help on using the changeset viewer.