Changeset 16413 for branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
- Timestamp:
- 12/20/18 10:22:45 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblemData.cs
r16244 r16413 34 34 public class RegressionProblemData : DataAnalysisProblemData, IRegressionProblemData, IStorableContent { 35 35 protected const string TargetVariableParameterName = "TargetVariable"; 36 protected const string VariableRangesParameterName = "VariableRanges"; 36 37 public string Filename { get; set; } 37 38 … … 91 92 problemData.Parameters.Add(new FixedValueParameter<IntRange>(TestPartitionParameterName, "", (IntRange)new IntRange(0, 0).AsReadOnly())); 92 93 problemData.Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariableParameterName, new ItemSet<StringValue>())); 94 problemData.Parameters.Add(new FixedValueParameter<VariableRanges>(VariableRangesParameterName, new VariableRanges())); 93 95 emptyProblemData = problemData; 94 96 } … … 98 100 get { return (IConstrainedValueParameter<StringValue>)Parameters[TargetVariableParameterName]; } 99 101 } 102 103 public IFixedValueParameter<VariableRanges> VariableRangesParameter { 104 get { return (IFixedValueParameter<VariableRanges>)Parameters[VariableRangesParameterName]; } 105 } 106 100 107 public string TargetVariable { 101 108 get { return TargetVariableParameter.Value.Value; } … … 152 159 var variables = InputVariables.Select(x => x.AsReadOnly()).ToList(); 153 160 Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariableParameterName, new ItemSet<StringValue>(variables), variables.Where(x => x.Value == targetVariable).First())); 161 Parameters.Add(new FixedValueParameter<VariableRanges>(VariableRangesParameterName, new VariableRanges())); 154 162 RegisterParameterEvents(); 155 163 }
Note: See TracChangeset
for help on using the changeset viewer.