Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16498 for branches


Ignore:
Timestamp:
01/04/19 13:03:29 (6 years ago)
Author:
jzenisek
Message:

#2288: adapted online calculation of variable impacts within VIN-view according to new interface of RegressionSolutionVariableImpactsCalculator.CalculateImpacts(..)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2288_HeuristicLab.VariableInteractionNetworks/HeuristicLab.VariableInteractionNetworks.Views/3.3/RunCollectionVariableInteractionNetworkView.cs

    r16497 r16498  
    121121          var solutions = group.Select(run => Tuple.Create(run, (IRegressionSolution)run.Results.Values.Single(sol => sol is IRegressionSolution)));
    122122          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);
    124127
    125128          targetImpacts[best.Item2.ProblemData.TargetVariable] = Tuple.Create(new[] { best.Item1 }.AsEnumerable(), impacts);
     
    139142            var md = dataset.ToModifiable();
    140143
    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);           
    142148            foreach (var t in impacts) {
    143149              if (averageImpacts.ContainsKey(t.Item1))
Note: See TracChangeset for help on using the changeset viewer.