Changeset 16756
- Timestamp:
- 04/04/19 13:15:58 (6 years ago)
- Location:
- branches/2971_named_intervals
- Files:
-
- 4 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionSingleObjectiveConstraintConstOptEvaluator.cs
r16713 r16756 59 59 OnlineCalculatorError errorState = OnlineCalculatorError.None; 60 60 61 var constraints = IntervalConstraintsParser.Parse(((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Value); 61 //var constraints = IntervalConstraintsParser.Parse(((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Value); 62 var constraints = ((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Constraints; 62 63 var intervalInterpreter = new IntervalInterpreter(); 63 64 var variableRanges = ((RegressionProblemData)problemData).VariableRangesParameter.Value.VariableIntervals; -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionSingleObjectiveConstraintPearsonRSquaredEvaluator.cs
r16713 r16756 59 59 OnlineCalculatorError errorState = OnlineCalculatorError.None; 60 60 61 var constraints = IntervalConstraintsParser.Parse(((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Value); 61 //var constraints = IntervalConstraintsParser.Parse(((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Value); 62 var constraints = ((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Constraints; 62 63 var intervalInterpreter = new IntervalInterpreter(); 63 64 var variableRanges = ((RegressionProblemData)problemData).VariableRangesParameter.Value.VariableIntervals; -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionConstraintAnalyzer.cs
r16747 r16756 87 87 static Dictionary<IntervalConstraint, bool> CheckConstraints(ISymbolicExpressionTree model, 88 88 IRegressionProblemData problemData) { 89 var constraints = IntervalConstraintsParser.Parse(((RegressionProblemData)problemData).IntervalConstraints.Value); 89 //var constraints = IntervalConstraintsParser.Parse(((RegressionProblemData)problemData).IntervalConstraints.Value); 90 var constraints = ((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Constraints; 90 91 var constraintViolations = new Dictionary<IntervalConstraint, bool>(); 91 92 var variableRanges = ((RegressionProblemData)problemData).VariableRanges.VariableIntervals; … … 147 148 var constraintViolations = new Dictionary<string, int>(); 148 149 149 var constraints = IntervalConstraintsParser.Parse(problemData.IntervalConstraints.Value); 150 //var constraints = IntervalConstraintsParser.Parse(problemData.IntervalConstraints.Value); 151 var constraints = problemData.IntervalConstraintsParameter.Value.Constraints; 150 152 151 153 if (dataTable.Rows.Count == 0) { -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj
r16685 r16756 321 321 <DependentUpon>ModifiableDatasetView.cs</DependentUpon> 322 322 </Compile> 323 <Compile Include="ParsedConstraintView.cs"> 324 <SubType>UserControl</SubType> 325 </Compile> 326 <Compile Include="ParsedConstraintView.designer.cs"> 327 <DependentUpon>ParsedConstraintView.cs</DependentUpon> 328 </Compile> 323 329 <Compile Include="Plugin.cs" /> 324 330 <Compile Include="ProblemDataView.cs"> … … 612 618 <EmbeddedResource Include="FeatureCorrelation\AbstractFeatureCorrelationView.resx"> 613 619 <DependentUpon>AbstractFeatureCorrelationView.cs</DependentUpon> 620 </EmbeddedResource> 621 <EmbeddedResource Include="ParsedConstraintView.resx"> 622 <DependentUpon>ParsedConstraintView.cs</DependentUpon> 614 623 </EmbeddedResource> 615 624 <EmbeddedResource Include="Regression\NamedIntervalsView.resx"> -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/HeuristicLab.Problems.DataAnalysis-3.4.csproj
r16685 r16756 301 301 <Compile Include="OnlineCalculators\OnlineTheilsUStatisticCalculator.cs" /> 302 302 <Compile Include="OnlineCalculators\OnlineWeightedDirectionalSymmetryCalculator.cs" /> 303 <Compile Include="ParsedConstraint.cs" /> 303 304 <Compile Include="Plugin.cs" /> 304 305 <Compile Include="Implementation\Classification\ThresholdCalculators\AccuracyMaximizationThresholdCalculator.cs" /> -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblemData.cs
r16731 r16756 95 95 problemData.Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariableParameterName, new ItemSet<StringValue>())); 96 96 problemData.Parameters.Add(new FixedValueParameter<NamedIntervals>(VariableRangesParameterName, "", new NamedIntervals())); 97 problemData.Parameters.Add(new FixedValueParameter< TextValue>(IntervalConstraintsParameterName, "", new TextValue()));97 problemData.Parameters.Add(new FixedValueParameter<ParsedConstraint>(IntervalConstraintsParameterName, "", new ParsedConstraint())); 98 98 emptyProblemData = problemData; 99 99 } … … 108 108 public NamedIntervals VariableRanges => VariableRangesParameter.Value; 109 109 110 public IFixedValueParameter< TextValue> IntervalConstraintsParameter => (IFixedValueParameter<TextValue>)Parameters[IntervalConstraintsParameterName];111 public TextValueIntervalConstraints => IntervalConstraintsParameter.Value;110 public IFixedValueParameter<ParsedConstraint> IntervalConstraintsParameter => (IFixedValueParameter<ParsedConstraint>)Parameters[IntervalConstraintsParameterName]; 111 public ParsedConstraint IntervalConstraints => IntervalConstraintsParameter.Value; 112 112 113 113 public string TargetVariable { … … 192 192 193 193 Parameters.Add(new FixedValueParameter<NamedIntervals>(VariableRangesParameterName, namedIntervals)); 194 Parameters.Add(new FixedValueParameter< TextValue>(IntervalConstraintsParameterName, new TextValue(commentMessage)));194 Parameters.Add(new FixedValueParameter<ParsedConstraint>(IntervalConstraintsParameterName, new ParsedConstraint())); 195 195 RegisterParameterEvents(); 196 196 }
Note: See TracChangeset
for help on using the changeset viewer.