Changeset 14381 for trunk/sources/HeuristicLab.DataPreprocessing
- Timestamp:
- 11/09/16 16:20:23 (8 years ago)
- Location:
- trunk/sources/HeuristicLab.DataPreprocessing/3.4/Data
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Data/FilteredPreprocessingData.cs
r14185 r14381 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 { -
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Data/IPreprocessingData.cs
r14185 r14381 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; } -
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Data/PreprocessingData.cs
r14185 r14381 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.