Changeset 14963 for stable/HeuristicLab.DataPreprocessing
- Timestamp:
- 05/11/17 13:44:01 (8 years ago)
- Location:
- stable
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 14381-14382,14384,14388,14418,14425
- Property svn:mergeinfo changed
-
stable/HeuristicLab.DataPreprocessing/3.4
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.DataPreprocessing/3.4 merged: 14381,14418
- Property svn:mergeinfo changed
-
stable/HeuristicLab.DataPreprocessing/3.4/Content/PreprocessingChartContent.cs
r14186 r14963 23 23 using System.Collections.Generic; 24 24 using System.Drawing; 25 using System.Linq;26 25 using HeuristicLab.Analysis; 27 26 using HeuristicLab.Common; … … 126 125 127 126 128 public ICheckedItemList<StringValue> CreateVariableItemList(IEnumerable<string> checkedItems = null) { 127 public ICheckedItemList<StringValue> CreateVariableItemList(IList<string> checkedItems = null) { 128 if (checkedItems == null) checkedItems = new string[0]; 129 129 ICheckedItemList<StringValue> itemList = new CheckedItemList<StringValue>(); 130 130 foreach (string name in PreprocessingData.GetDoubleVariableNames()) { 131 131 var n = new StringValue(name); 132 itemList.Add(n, (checkedItems == null) ? true :checkedItems.Contains(name));132 itemList.Add(n, checkedItems.Contains(name)); 133 133 } 134 134 return new ReadOnlyCheckedItemList<StringValue>(itemList); -
stable/HeuristicLab.DataPreprocessing/3.4/Data/FilteredPreprocessingData.cs
r14186 r14963 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 { -
stable/HeuristicLab.DataPreprocessing/3.4/Data/IPreprocessingData.cs
r14186 r14963 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; } -
stable/HeuristicLab.DataPreprocessing/3.4/Data/PreprocessingData.cs
r14960 r14963 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.