- Timestamp:
- 11/17/16 15:43:43 (8 years ago)
- Location:
- branches/symbreg-factors-2650
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/symbreg-factors-2650
- Property svn:mergeinfo changed
/trunk/sources merged: 14378,14381-14382,14384,14388,14390-14391,14393-14394,14396,14400
- Property svn:mergeinfo changed
-
branches/symbreg-factors-2650/HeuristicLab.DataPreprocessing/3.4
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.DataPreprocessing/3.4 merged: 14381,14393,14400
- Property svn:mergeinfo changed
-
branches/symbreg-factors-2650/HeuristicLab.DataPreprocessing/3.4/Data/FilteredPreprocessingData.cs
r14185 r14401 47 47 get { return ActiveData.VariableNames; } 48 48 } 49 50 public IList<string> InputVariables { get { return ActiveData.InputVariables; } } 51 public string TargetVariable { get { return ActiveData.TargetVariable; } } // optional 49 52 50 53 public IDictionary<int, IList<int>> Selection { -
branches/symbreg-factors-2650/HeuristicLab.DataPreprocessing/3.4/Data/IPreprocessingData.cs
r14185 r14401 65 65 bool VariableHasType<T>(int columnIndex); 66 66 67 IList<string> InputVariables { get; } 68 string TargetVariable { get; } // optional 69 67 70 int Columns { get; } 68 71 int Rows { get; } -
branches/symbreg-factors-2650/HeuristicLab.DataPreprocessing/3.4/Data/PreprocessingData.cs
r14185 r14401 59 59 } 60 60 61 public IList<string> InputVariables { get; private set; } 62 public string TargetVariable { get; private set; } // optional 63 61 64 public int Columns { 62 65 get { return variableNames.Count; } … … 82 85 TrainingPartition = (IntRange)original.TrainingPartition.Clone(cloner); 83 86 TestPartition = (IntRange)original.TestPartition.Clone(cloner); 84 transformations = new List<ITransformation>(); 87 transformations = new List<ITransformation>(original.transformations.Select(cloner.Clone)); 88 89 InputVariables = new List<string>(original.InputVariables); 90 TargetVariable = original.TargetVariable; 85 91 86 92 RegisterEventHandler(); … … 102 108 Dataset dataset = (Dataset)problemData.Dataset; 103 109 variableNames = new List<string>(problemData.Dataset.VariableNames); 110 InputVariables = new List<string>(problemData.AllowedInputVariables); 111 TargetVariable = (problemData is IRegressionProblemData) ? ((IRegressionProblemData)problemData).TargetVariable 112 : (problemData is IClassificationProblemData) ? ((IClassificationProblemData)problemData).TargetVariable 113 : null; 104 114 105 115 int columnIndex = 0;
Note: See TracChangeset
for help on using the changeset viewer.