Changeset 10922
- Timestamp:
- 05/30/14 11:51:24 (10 years ago)
- Location:
- branches/DataPreprocessing
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/DataPreprocessingView.cs
r10921 r10922 66 66 new ScatterPlotContent(chartLogic), 67 67 new CorrelationMatrixContent(problemData), 68 new DataCompletenessChartContent(dataGridLogic, searchLogic) 69 //new DataCompletenessChartContent(dataCompletenessLogic), 68 new DataCompletenessChartContent(dataGridLogic, searchLogic), 70 69 71 70 new FilterContent(filterLogic), -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/ProblemDataCreator.cs
r10908 r10922 36 36 37 37 private IEnumerable<string> InputVariables { get { return context.Data.VariableNames; } } 38 private I Enumerable<ITransformation> Transformations { get { return context.Data.Transformations; } }38 private IList<ITransformation> Transformations { get { return context.Data.Transformations; } } 39 39 40 40 public ProblemDataCreator(IPreprocessingContext context) { -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Trading/3.4/ProblemData.cs
r10772 r10922 1628 1628 } 1629 1629 1630 public ProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable, I Enumerable<ITransformation> transformations = null)1631 : base(dataset, allowedInputVariables, transformations ?? Enumerable.Empty<ITransformation>()) {1630 public ProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable, IList<ITransformation> transformations = null) 1631 : base(dataset, allowedInputVariables, transformations ?? new List<ITransformation>()) { 1632 1632 var variables = InputVariables.Select(x => x.AsReadOnly()).ToList(); 1633 1633 Parameters.Add(new ConstrainedValueParameter<StringValue>(PriceChangeVariableParameterName, new ItemSet<StringValue>(variables), variables.First(x => x.Value == targetVariable))); -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationProblemData.cs
r10772 r10922 292 292 } 293 293 294 public ClassificationProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable, I Enumerable<ITransformation> transformations = null)295 : base(dataset, allowedInputVariables, transformations ?? Enumerable.Empty<ITransformation>()) {294 public ClassificationProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable, IList<ITransformation> transformations = null) 295 : base(dataset, allowedInputVariables, transformations ?? new List<ITransformation>()) { 296 296 var validTargetVariableValues = CheckVariablesForPossibleTargetVariables(dataset).Select(x => new StringValue(x).AsReadOnly()).ToList(); 297 297 var target = validTargetVariableValues.Where(x => x.Value == targetVariable).DefaultIfEmpty(validTargetVariableValues.First()).First(); -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Clustering/ClusteringProblemData.cs
r10772 r10922 21 21 22 22 using System.Collections.Generic; 23 using System.Linq;24 23 using HeuristicLab.Common; 25 24 using HeuristicLab.Core; … … 88 87 } 89 88 90 public ClusteringProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, I Enumerable<ITransformation> transformations = null)91 : base(dataset, allowedInputVariables, transformations ?? Enumerable.Empty<ITransformation>()) {89 public ClusteringProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, IList<ITransformation> transformations = null) 90 : base(dataset, allowedInputVariables, transformations ?? new List<ITransformation>()) { 92 91 } 93 92 } -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblemData.cs
r10814 r10922 53 53 get { return (IFixedValueParameter<IntRange>)Parameters[TestPartitionParameterName]; } 54 54 } 55 public IFixedValueParameter<ReadOnlyItem Collection<ITransformation>> TransformationsParameter {56 get { return (IFixedValueParameter<ReadOnlyItem Collection<ITransformation>>)Parameters[TransformationsParameterName]; }55 public IFixedValueParameter<ReadOnlyItemList<ITransformation>> TransformationsParameter { 56 get { return (IFixedValueParameter<ReadOnlyItemList<ITransformation>>)Parameters[TransformationsParameterName]; } 57 57 } 58 58 #endregion … … 120 120 private void AfterDeserialization() { 121 121 if (!Parameters.ContainsKey(TransformationsParameterName)) { 122 Parameters.Add(new FixedValueParameter<ReadOnlyItem Collection<ITransformation>>(TransformationsParameterName, "", new ItemCollection<ITransformation>().AsReadOnly()));122 Parameters.Add(new FixedValueParameter<ReadOnlyItemList<ITransformation>>(TransformationsParameterName, "", new ItemList<ITransformation>().AsReadOnly())); 123 123 TransformationsParameter.Hidden = true; 124 124 } … … 126 126 } 127 127 128 protected DataAnalysisProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, I Enumerable<ITransformation> transformations) {128 protected DataAnalysisProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, IList<ITransformation> transformations) { 129 129 if (dataset == null) throw new ArgumentNullException("The dataset must not be null."); 130 130 if (allowedInputVariables == null) throw new ArgumentNullException("The allowedInputVariables must not be null."); … … 144 144 int testPartitionEnd = dataset.Rows; 145 145 146 var transformations Collection = new ItemCollection<ITransformation>(transformations);146 var transformationsList = new ItemList<ITransformation>(transformations); 147 147 148 148 Parameters.Add(new FixedValueParameter<Dataset>(DatasetParameterName, "", dataset)); … … 150 150 Parameters.Add(new FixedValueParameter<IntRange>(TrainingPartitionParameterName, "", new IntRange(trainingPartitionStart, trainingPartitionEnd))); 151 151 Parameters.Add(new FixedValueParameter<IntRange>(TestPartitionParameterName, "", new IntRange(testPartitionStart, testPartitionEnd))); 152 Parameters.Add(new FixedValueParameter<ReadOnlyItem Collection<ITransformation>>(TransformationsParameterName, "", transformationsCollection.AsReadOnly()));152 Parameters.Add(new FixedValueParameter<ReadOnlyItemList<ITransformation>>(TransformationsParameterName, "", transformationsList.AsReadOnly())); 153 153 154 154 TransformationsParameter.Hidden = true; -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblemData.cs
r10772 r10922 130 130 } 131 131 132 public RegressionProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable, I Enumerable<ITransformation> transformations = null)133 : base(dataset, allowedInputVariables, transformations ?? Enumerable.Empty<ITransformation>()) {132 public RegressionProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable, IList<ITransformation> transformations = null) 133 : base(dataset, allowedInputVariables, transformations ?? new List<ITransformation>()) { 134 134 var variables = InputVariables.Select(x => x.AsReadOnly()).ToList(); 135 135 Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariableParameterName, new ItemSet<StringValue>(variables), variables.Where(x => x.Value == targetVariable).First()));
Note: See TracChangeset
for help on using the changeset viewer.