Changeset 16586 for branches/2971_named_intervals
- Timestamp:
- 02/05/19 10:12:59 (6 years ago)
- Location:
- branches/2971_named_intervals
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicDataAnalysisSolutionSimplifierView.cs
r16581 r16586 196 196 cancellationTokenSource = new CancellationTokenSource(); 197 197 var interpreter = new IntervalInterpreter(); 198 //!TODO: 199 //delete this 200 //IntervalConstraintsParser parser = new IntervalConstraintsParser(); 201 //var parsed = parser.Parse((Content.ProblemData as RegressionProblemData).IntervalConstraintsParameter.Value.Value); 202 198 203 199 204 var impactAndReplacementValues = await Task.Run(() => CalculateImpactAndReplacementValues(tree)); -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj
r16544 r16586 518 518 <Compile Include="Solution Views\TimeSeriesPrognosisSolutionView.Designer.cs"> 519 519 <DependentUpon>TimeSeriesPrognosisSolutionView.cs</DependentUpon> 520 </Compile> 521 <Compile Include="TextValueView.cs"> 522 <SubType>UserControl</SubType> 523 </Compile> 524 <Compile Include="TextValueView.designer.cs"> 525 <DependentUpon>TextValueView.cs</DependentUpon> 520 526 </Compile> 521 527 <Compile Include="TimeSeriesPrognosis\TimeSeriesPrognosisResidualsLineChartView.cs"> … … 584 590 <DependentUpon>NamedIntervalsView.cs</DependentUpon> 585 591 </EmbeddedResource> 592 <EmbeddedResource Include="TextValueView.resx"> 593 <DependentUpon>TextValueView.cs</DependentUpon> 594 </EmbeddedResource> 586 595 </ItemGroup> 587 596 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/NamedIntervalsView.cs
r16545 r16586 65 65 base.SetEnabledStateOfControls(); 66 66 dataGridView.Enabled = Content != null; 67 //dataGridView.ReadOnly = ReadOnly;67 dataGridView.ReadOnly = ReadOnly; 68 68 } 69 69 … … 119 119 120 120 private void dataGridView_CellValidating(object sender, DataGridViewCellValidatingEventArgs e) { 121 double value;122 123 121 if (dataGridView.Rows[e.RowIndex].IsNewRow) { 124 122 return; 125 123 } 126 124 127 if (!double.TryParse(e.FormattedValue.ToString(), out va lue)) {125 if (!double.TryParse(e.FormattedValue.ToString(), out var value)) { 128 126 e.Cancel = true; 129 127 dataGridView.Rows[e.RowIndex].ErrorText = "Value must be a double value."; … … 135 133 } 136 134 } 137 138 135 } 139 136 -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/HeuristicLab.Problems.DataAnalysis-3.4.csproj
r16426 r16586 175 175 <Compile Include="Implementation\Interval.cs" /> 176 176 <Compile Include="Implementation\NamedIntervals.cs" /> 177 <Compile Include="Implementation\Parser\IntervalConstraint.cs" /> 178 <Compile Include="Implementation\Parser\IntervalConstraintsParser.cs" /> 177 179 <Compile Include="Implementation\Regression\ConfidenceBoundRegressionSolution.cs" /> 178 180 <Compile Include="Implementation\Regression\ConstantRegressionModel.cs" /> … … 211 213 <Compile Include="Interfaces\IDataset.cs" /> 212 214 <Compile Include="Interfaces\IDependencyCalculator.cs" /> 215 <Compile Include="Interfaces\ITextValue.cs" /> 213 216 <Compile Include="Interfaces\ITransformation.cs" /> 214 217 <Compile Include="Interfaces\ITransformationMapper.cs" /> … … 282 285 <Compile Include="Implementation\Classification\ThresholdCalculators\NormalDistributionCutPointsThresholdCalculator.cs" /> 283 286 <Compile Include="Implementation\Classification\ThresholdCalculators\ThresholdCalculator.cs" /> 287 <Compile Include="TextValue.cs" /> 284 288 <None Include="HeuristicLab.snk" /> 285 289 <None Include="Plugin.cs.frame" /> -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/NamedIntervals.cs
r16548 r16586 15 15 public class NamedIntervals : Item { 16 16 ObservableDictionary<string, Interval> variableIntervals = new ObservableDictionary<string, Interval>(); 17 public ObservableDictionary<string, Interval> VariableIntervals { 18 get { return variableIntervals; } 19 } 17 public ObservableDictionary<string, Interval> VariableIntervals => variableIntervals; 20 18 21 19 [Storable(Name = "StorableIntervalInformation")] -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblemData.cs
r16549 r16586 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using System.Net.Mime; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; … … 36 37 protected const string TargetVariableParameterName = "TargetVariable"; 37 38 protected const string VariableRangesParameterName = "VariableRanges"; 39 protected const string IntervalConstraintsParameterName = "IntervalConstraints"; 38 40 public string Filename { get; set; } 39 41 … … 94 96 problemData.Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariableParameterName, new ItemSet<StringValue>())); 95 97 problemData.Parameters.Add(new FixedValueParameter<NamedIntervals>(VariableRangesParameterName,"", new NamedIntervals())); 98 problemData.Parameters.Add(new FixedValueParameter<TextValue>(IntervalConstraintsParameterName, "", new TextValue())); 96 99 emptyProblemData = problemData; 97 100 } … … 105 108 get { return (IFixedValueParameter<NamedIntervals>)Parameters[VariableRangesParameterName]; } 106 109 } 110 111 public IFixedValueParameter<TextValue> IntervalConstraintsParameter => (IFixedValueParameter<TextValue>) Parameters[IntervalConstraintsParameterName]; 107 112 108 113 public string TargetVariable { … … 168 173 169 174 Parameters.Add(new FixedValueParameter<NamedIntervals>(VariableRangesParameterName, namedIntervals)); 175 Parameters.Add(new FixedValueParameter<TextValue>(IntervalConstraintsParameterName, new TextValue())); 170 176 RegisterParameterEvents(); 171 177 }
Note: See TracChangeset
for help on using the changeset viewer.