- Timestamp:
- 07/17/21 19:03:41 (3 years ago)
- Location:
- stable
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk merged: 17920,17938-17939
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Problems.DataAnalysis.Views merged: 17920,17938-17939
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Problems.DataAnalysis.Views/3.4 merged: 17920,17938-17939
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4/Controls/FactorPartialDependencePlot.cs
r17181 r18021 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 } -
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4/Controls/PartialDependencePlot.cs
r17803 r18021 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 } -
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionPartialDependencePlotView.cs
r17181 r18021 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.