- Timestamp:
- 01/04/19 13:03:29 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2288_HeuristicLab.VariableInteractionNetworks/HeuristicLab.VariableInteractionNetworks.Views/3.3/RunCollectionVariableInteractionNetworkView.cs
r16497 r16498 121 121 var solutions = group.Select(run => Tuple.Create(run, (IRegressionSolution)run.Results.Values.Single(sol => sol is IRegressionSolution))); 122 122 var best = solutions.OrderBy(x => x.Item2.TrainingRSquared).Last(); 123 var impacts = RegressionSolutionVariableImpactsCalculator.CalculateImpacts(best.Item2, RegressionSolutionVariableImpactsCalculator.DataPartitionEnum.All, RegressionSolutionVariableImpactsCalculator.ReplacementMethodEnum.Shuffle).ToDictionary(x => x.Item1, x => x.Item2); 123 var impacts = RegressionSolutionVariableImpactsCalculator.CalculateImpacts(best.Item2, 124 RegressionSolutionVariableImpactsCalculator.ReplacementMethodEnum.Shuffle, 125 RegressionSolutionVariableImpactsCalculator.FactorReplacementMethodEnum.Best, 126 RegressionSolutionVariableImpactsCalculator.DataPartitionEnum.All).ToDictionary(x => x.Item1, x => x.Item2); 124 127 125 128 targetImpacts[best.Item2.ProblemData.TargetVariable] = Tuple.Create(new[] { best.Item1 }.AsEnumerable(), impacts); … … 139 142 var md = dataset.ToModifiable(); 140 143 141 var impacts = RegressionSolutionVariableImpactsCalculator.CalculateImpacts(sol, RegressionSolutionVariableImpactsCalculator.DataPartitionEnum.All, RegressionSolutionVariableImpactsCalculator.ReplacementMethodEnum.Shuffle); 144 var impacts = RegressionSolutionVariableImpactsCalculator.CalculateImpacts(sol, 145 RegressionSolutionVariableImpactsCalculator.ReplacementMethodEnum.Shuffle, 146 RegressionSolutionVariableImpactsCalculator.FactorReplacementMethodEnum.Best, 147 RegressionSolutionVariableImpactsCalculator.DataPartitionEnum.All); 142 148 foreach (var t in impacts) { 143 149 if (averageImpacts.ContainsKey(t.Item1))
Note: See TracChangeset
for help on using the changeset viewer.