- Timestamp:
- 05/06/19 13:14:50 (6 years ago)
- Location:
- branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4
- Files:
-
- 3 edited
- 2 copied
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/HeuristicLab.Problems.DataAnalysis-3.4.csproj
r16843 r16896 193 193 <Compile Include="Implementation\ConstantModel.cs" /> 194 194 <Compile Include="Implementation\DataAnalysisModel.cs" /> 195 <Compile Include="Implementation\Interval .cs" />196 <Compile Include="Implementation\ NamedIntervals.cs" />197 <Compile Include="Implementation\ Parser\IntervalConstraint.cs" />198 <Compile Include="Implementation\ Parser\IntervalConstraintsParser.cs" />195 <Compile Include="Implementation\Interval\Interval.cs" /> 196 <Compile Include="Implementation\Interval\IntervalCollection.cs" /> 197 <Compile Include="Implementation\Interval\IntervalConstraint.cs" /> 198 <Compile Include="Implementation\Interval\IntervalConstraintsParser.cs" /> 199 199 <Compile Include="Implementation\Regression\ConfidenceBoundRegressionSolution.cs" /> 200 200 <Compile Include="Implementation\Regression\ConstantRegressionModel.cs" /> … … 301 301 <Compile Include="OnlineCalculators\OnlineWeightedDirectionalSymmetryCalculator.cs" /> 302 302 <Compile Include="OnlineCalculators\OnlineWeightedClassificationMeanSquaredErrorCalculator.cs" /> 303 <Compile Include="P arsedConstraint.cs" />303 <Compile Include="ProblemDataConstraint.cs" /> 304 304 <Compile Include="Plugin.cs" /> 305 305 <Compile Include="Implementation\Classification\ThresholdCalculators\AccuracyMaximizationThresholdCalculator.cs" /> -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblemData.cs
r16884 r16896 94 94 problemData.Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariableParameterName, new ItemSet<StringValue>())); 95 95 problemData.Parameters.Add(new FixedValueParameter<NamedIntervals>(VariableRangesParameterName, "", new NamedIntervals())); 96 problemData.Parameters.Add(new FixedValueParameter<P arsedConstraint>(IntervalConstraintsParameterName, "", new ParsedConstraint()));96 problemData.Parameters.Add(new FixedValueParameter<ProblemDataConstraint>(IntervalConstraintsParameterName, "", new ProblemDataConstraint())); 97 97 emptyProblemData = problemData; 98 98 } … … 111 111 112 112 113 public IFixedValueParameter<P arsedConstraint> IntervalConstraintsParameter => (IFixedValueParameter<ParsedConstraint>)Parameters[IntervalConstraintsParameterName];114 115 public P arsedConstraint IntervalConstraints {113 public IFixedValueParameter<ProblemDataConstraint> IntervalConstraintsParameter => (IFixedValueParameter<ProblemDataConstraint>)Parameters[IntervalConstraintsParameterName]; 114 115 public ProblemDataConstraint IntervalConstraints { 116 116 get => IntervalConstraintsParameter.Value; 117 117 set => IntervalConstraints = value ?? throw new ArgumentNullException("IntervalCosntraint", "The given Constraint is null."); … … 158 158 } 159 159 if (!Parameters.ContainsKey(IntervalConstraintsParameterName)) { 160 Parameters.Add(new FixedValueParameter<P arsedConstraint>(IntervalConstraintsParameterName, new ParsedConstraint(this)));160 Parameters.Add(new FixedValueParameter<ProblemDataConstraint>(IntervalConstraintsParameterName, new ProblemDataConstraint(this))); 161 161 } 162 162 RegisterParameterEvents(); … … 196 196 197 197 Parameters.Add(new FixedValueParameter<NamedIntervals>(VariableRangesParameterName, namedIntervals)); 198 Parameters.Add(new FixedValueParameter<P arsedConstraint>(IntervalConstraintsParameterName, new ParsedConstraint(this)));198 Parameters.Add(new FixedValueParameter<ProblemDataConstraint>(IntervalConstraintsParameterName, new ProblemDataConstraint(this))); 199 199 RegisterParameterEvents(); 200 200 } -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/Regression/IRegressionProblemData.cs
r16845 r16896 29 29 30 30 NamedIntervals VariableRanges { get; set; } 31 P arsedConstraint IntervalConstraints { get; set; }31 ProblemDataConstraint IntervalConstraints { get; set; } 32 32 33 33 IEnumerable<double> TargetVariableValues { get; } -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/ProblemDataConstraint.cs
r16895 r16896 30 30 [StorableType("A56BFB05-8F11-4766-9FBF-20C7010F1CA3")] 31 31 [Item("ParsedConstraint", "Represents parsed constraints.")] 32 public class P arsedConstraint : Item {32 public class ProblemDataConstraint : Item { 33 33 private static readonly string exampleInput = "# Example for a target variable constraint:" + Environment.NewLine + 34 34 "Target:'y' in [0 .. 100]" + Environment.NewLine + Environment.NewLine + … … 53 53 54 54 [StorableConstructor] 55 protected P arsedConstraint(StorableConstructorFlag _) : base(_) { }55 protected ProblemDataConstraint(StorableConstructorFlag _) : base(_) { } 56 56 57 protected P arsedConstraint(ParsedConstraint original, Cloner cloner)57 protected ProblemDataConstraint(ProblemDataConstraint original, Cloner cloner) 58 58 : base(original, cloner) { 59 59 this.Input = original.Input; … … 63 63 64 64 public override IDeepCloneable Clone(Cloner cloner) { 65 return new P arsedConstraint(this, cloner);65 return new ProblemDataConstraint(this, cloner); 66 66 } 67 67 68 public P arsedConstraint() :base () {68 public ProblemDataConstraint() :base () { 69 69 this.Input = exampleInput; 70 70 this.constraints = new CheckedItemList<IntervalConstraint>(); … … 72 72 } 73 73 74 public P arsedConstraint(IRegressionProblemData problemData) : base() {74 public ProblemDataConstraint(IRegressionProblemData problemData) : base() { 75 75 this.Input = exampleInput; 76 76 this.constraints = new List<IntervalConstraint>();
Note: See TracChangeset
for help on using the changeset viewer.