Changeset 17970 for branches/3106_AnalyticContinuedFractionsRegression/HeuristicLab.Problems.DataAnalysis.Views/3.4
- Timestamp:
- 04/30/21 12:18:19 (4 years ago)
- Location:
- branches/3106_AnalyticContinuedFractionsRegression
- Files:
-
- 2 deleted
- 8 edited
- 9 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3106_AnalyticContinuedFractionsRegression
- Property svn:mergeinfo changed
-
branches/3106_AnalyticContinuedFractionsRegression/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
-
branches/3106_AnalyticContinuedFractionsRegression/HeuristicLab.Problems.DataAnalysis.Views/3.4/Controls/FactorPartialDependencePlot.cs
r17180 r17970 222 222 if (updateOnFinish) 223 223 Update(); 224 } catch (OperationCanceledException) { 224 } catch (OperationCanceledException) { 225 225 } catch (AggregateException ae) { 226 226 if (!ae.InnerExceptions.Any(e => e is OperationCanceledException)) … … 434 434 var refSolution = solutions.First(); 435 435 var refSolVars = refSolution.ProblemData.Dataset.VariableNames; 436 var refFactorVars = refSolution.ProblemData.Dataset.StringVariables; 437 var distinctVals = refFactorVars.ToDictionary(fv => fv, fv => refSolution.ProblemData.Dataset.GetStringValues(fv).Distinct().ToArray()); 438 436 439 foreach (var solution in solutions.Skip(1)) { 437 var variables1 = solution.ProblemData.Dataset.VariableNames;438 if (!variables1. All(refSolVars.Contains))440 var variables1 = new HashSet<string>(solution.ProblemData.Dataset.VariableNames); 441 if (!variables1.IsSubsetOf(refSolVars)) 439 442 return false; 440 443 441 foreach (var factorVar in variables1.Where(solution.ProblemData.Dataset.VariableHasType<string>)) { 442 var distinctVals = refSolution.ProblemData.Dataset.GetStringValues(factorVar).Distinct(); 443 if (solution.ProblemData.Dataset.GetStringValues(factorVar).Any(val => !distinctVals.Contains(val))) return false; 444 foreach (var factorVar in solution.ProblemData.Dataset.StringVariables) { 445 var refValues = distinctVals[factorVar]; 446 var values = new HashSet<string>(solution.ProblemData.Dataset.GetStringValues(factorVar)); 447 448 if (!values.IsSubsetOf(refValues)) 449 return false; 444 450 } 445 451 } -
branches/3106_AnalyticContinuedFractionsRegression/HeuristicLab.Problems.DataAnalysis.Views/3.4/Controls/PartialDependencePlot.cs
r17775 r17970 530 530 531 531 public async Task AddSolutionAsync(IRegressionSolution solution) { 532 if (solutions.Contains(solution)) 533 return; 532 534 if (!SolutionsCompatible(solutions.Concat(new[] { solution }))) 533 535 throw new ArgumentException("The solution is not compatible with the problem data."); 534 if (solutions.Contains(solution))535 return;536 536 537 537 solutions.Add(solution); … … 568 568 var refSolution = solutions.First(); 569 569 var refSolVars = refSolution.ProblemData.Dataset.VariableNames; 570 var refFactorVars = refSolution.ProblemData.Dataset.StringVariables; 571 var distinctVals = refFactorVars.ToDictionary(fv => fv, fv => refSolution.ProblemData.Dataset.GetStringValues(fv).Distinct().ToArray()); 572 570 573 foreach (var solution in solutions.Skip(1)) { 571 var variables1 = solution.ProblemData.Dataset.VariableNames;572 if (!variables1. All(refSolVars.Contains))574 var variables1 = new HashSet<string>(solution.ProblemData.Dataset.VariableNames); 575 if (!variables1.IsSubsetOf(refSolVars)) 573 576 return false; 574 577 575 foreach (var factorVar in variables1.Where(solution.ProblemData.Dataset.VariableHasType<string>)) { 576 var distinctVals = refSolution.ProblemData.Dataset.GetStringValues(factorVar).Distinct(); 577 if (solution.ProblemData.Dataset.GetStringValues(factorVar).Any(val => !distinctVals.Contains(val))) return false; 578 foreach (var factorVar in solution.ProblemData.Dataset.StringVariables) { 579 var refValues = distinctVals[factorVar]; 580 var values = new HashSet<string>(solution.ProblemData.Dataset.GetStringValues(factorVar)); 581 582 if (!values.IsSubsetOf(refValues)) 583 return false; 578 584 } 579 585 } -
branches/3106_AnalyticContinuedFractionsRegression/HeuristicLab.Problems.DataAnalysis.Views/3.4/HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj
r17579 r17970 99 99 </PropertyGroup> 100 100 <ItemGroup> 101 <Reference Include="ALGLIB-3.7.0, Version=3.7.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 102 <HintPath>..\..\bin\ALGLIB-3.7.0.dll</HintPath> 103 <Private>False</Private> 101 <Reference Include="ALGLIB-3.17.0, Version=3.17.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 102 <SpecificVersion>False</SpecificVersion> 103 <HintPath>..\..\bin\ALGLIB-3.17.0.dll</HintPath> 104 <Private>False</Private> 105 </Reference> 106 <Reference Include="HEAL.Attic, Version=1.5.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 107 <SpecificVersion>False</SpecificVersion> 108 <HintPath>..\..\bin\HEAL.Attic.dll</HintPath> 104 109 </Reference> 105 110 <Reference Include="System" /> … … 221 226 <Compile Include="Interfaces\IDataPreprocessorStarter.cs" /> 222 227 <Compile Include="Interfaces\IPartialDependencePlot.cs" /> 223 <Compile Include="IntervalCollectionView.cs">224 <SubType>UserControl</SubType>225 </Compile>226 <Compile Include="IntervalCollectionView.Designer.cs">227 <DependentUpon>IntervalCollectionView.cs</DependentUpon>228 </Compile>229 228 <Compile Include="MenuItems\ChangeDataOfOptimizersMenuItem.cs" /> 230 229 <Compile Include="MenuItems\ShrinkDataAnalysisRunsMenuItem.cs" /> … … 242 241 <DependentUpon>ProblemDataView.cs</DependentUpon> 243 242 </Compile> 243 <Compile Include="Properties\Resources.Designer.cs"> 244 <AutoGen>True</AutoGen> 245 <DesignTime>True</DesignTime> 246 <DependentUpon>Resources.resx</DependentUpon> 247 </Compile> 244 248 <Compile Include="Regression\ConfidenceRegressionSolutionEstimatedValuesView.cs"> 245 249 <SubType>UserControl</SubType> … … 254 258 <DependentUpon>ConfidenceRegressionSolutionLineChartView.cs</DependentUpon> 255 259 </Compile> 260 <Compile Include="Regression\IntervalCollectionView.cs"> 261 <SubType>UserControl</SubType> 262 </Compile> 263 <Compile Include="Regression\IntervalCollectionView.Designer.cs"> 264 <DependentUpon>IntervalCollectionView.cs</DependentUpon> 265 </Compile> 256 266 <Compile Include="Regression\RegressionEnsembleSolutionModelWeightsView.cs"> 257 267 <SubType>UserControl</SubType> … … 343 353 <Compile Include="Regression\RegressionSolutionScatterPlotView.Designer.cs"> 344 354 <DependentUpon>RegressionSolutionScatterPlotView.cs</DependentUpon> 355 </Compile> 356 <Compile Include="Regression\ShapeConstraintsView.cs"> 357 <SubType>UserControl</SubType> 358 </Compile> 359 <Compile Include="Regression\ShapeConstraintsView.Designer.cs"> 360 <DependentUpon>ShapeConstraintsView.cs</DependentUpon> 361 </Compile> 362 <Compile Include="Regression\ShapeConstraintView.cs"> 363 <SubType>UserControl</SubType> 364 </Compile> 365 <Compile Include="Regression\ShapeConstraintView.Designer.cs"> 366 <DependentUpon>ShapeConstraintView.cs</DependentUpon> 345 367 </Compile> 346 368 <Compile Include="Solution Views\ClassificationSolutionView.cs"> … … 605 627 <DependentUpon>AbstractFeatureCorrelationView.cs</DependentUpon> 606 628 </EmbeddedResource> 629 <EmbeddedResource Include="Properties\Resources.resx"> 630 <Generator>ResXFileCodeGenerator</Generator> 631 <LastGenOutput>Resources.Designer.cs</LastGenOutput> 632 </EmbeddedResource> 607 633 </ItemGroup> 608 634 <ItemGroup> 609 <Reference Include="HEAL.Attic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 610 <SpecificVersion>False</SpecificVersion> 611 <HintPath>..\..\bin\HEAL.Attic.dll</HintPath> 612 <Private>False</Private> 613 </Reference> 635 <EmbeddedResource Include="Resources\shapeConstraintsHelp.rtf" /> 636 <None Include="Resources\VS2008ImageLibrary_Annotations_Information.png" /> 614 637 </ItemGroup> 615 638 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> -
branches/3106_AnalyticContinuedFractionsRegression/HeuristicLab.Problems.DataAnalysis.Views/3.4/Plugin.cs.frame
r17184 r17970 28 28 [Plugin("HeuristicLab.Problems.DataAnalysis.Views", "Provides views for base classes for data analysis tasks.", "3.4.12.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Problems.DataAnalysis.Views-3.4.dll", PluginFileType.Assembly)] 30 [PluginDependency("HeuristicLab.ALGLIB", "3. 7.0")]30 [PluginDependency("HeuristicLab.ALGLIB", "3.17.0")] 31 31 [PluginDependency("HeuristicLab.Algorithms.DataAnalysis", "3.4")] 32 32 [PluginDependency("HeuristicLab.Analysis", "3.3")] -
branches/3106_AnalyticContinuedFractionsRegression/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionLineChartViewBase.cs
r17180 r17970 81 81 this.chart.Series[ESTIMATEDVALUES_TRAINING_SERIES_NAME].LegendText = ESTIMATEDVALUES_TRAINING_SERIES_NAME; 82 82 this.chart.Series[ESTIMATEDVALUES_TRAINING_SERIES_NAME].ChartType = SeriesChartType.FastLine; 83 this.chart.Series[ESTIMATEDVALUES_TRAINING_SERIES_NAME].EmptyPointStyle.Color = this.chart.Series[ESTIMATEDVALUES_TRAINING_SERIES_NAME].Color;84 83 int[] trainingIdx; 85 84 double[] trainingY; … … 120 119 double min = double.MaxValue, max = double.MinValue; 121 120 foreach (var point in chart.Series.SelectMany(x => x.Points)) { 122 if ( !point.YValues.Any() || double.IsInfinity(point.YValues[0]) || double.IsNaN(point.YValues[0]))121 if (point.IsEmpty || !point.YValues.Any() || double.IsInfinity(point.YValues[0]) || double.IsNaN(point.YValues[0])) 123 122 continue; 124 123 var y = point.YValues[0]; -
branches/3106_AnalyticContinuedFractionsRegression/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionPartialDependencePlotView.cs
r17180 r17970 119 119 120 120 // create dataset of problemData input variables and model input variables 121 // necessary workaround to have the variables in the occur ing order121 // necessary workaround to have the variables in the occurring order 122 122 var inputvariables = 123 123 new HashSet<string>(Content.ProblemData.AllowedInputVariables.Union(Content.Model.VariablesUsedForPrediction));
Note: See TracChangeset
for help on using the changeset viewer.