Changeset 15321 for branches/SimplifierViewsProgress/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views/3.4/InteractiveSymbolicClassificationSolutionSimplifierViewBase.cs
- Timestamp:
- 08/10/17 17:16:07 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SimplifierViewsProgress/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views/3.4/InteractiveSymbolicClassificationSolutionSimplifierViewBase.cs
r14826 r15321 21 21 22 22 using System; 23 using System.Collections.Generic;24 using System.Linq;25 23 using HeuristicLab.Common; 26 24 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; … … 34 32 get { return (ISymbolicClassificationSolution)base.Content; } 35 33 set { base.Content = value; } 34 } 35 36 protected override ISymbolicDataAnalysisSolutionImpactValuesCalculator ImpactCalculator { 37 get { return calculator; } 36 38 } 37 39 … … 60 62 } 61 63 62 protected override Dictionary<ISymbolicExpressionTreeNode, Tuple<double, double>> CalculateImpactAndReplacementValues(ISymbolicExpressionTree tree) {63 var impactAndReplacementValues = new Dictionary<ISymbolicExpressionTreeNode, Tuple<double, double>>();64 foreach (var node in tree.Root.GetSubtree(0).GetSubtree(0).IterateNodesPrefix()) {65 double impactValue, replacementValue, newQualityForImpactsCalculation;66 calculator.CalculateImpactAndReplacementValues(Content.Model, node, Content.ProblemData, Content.ProblemData.TrainingIndices, out impactValue, out replacementValue, out newQualityForImpactsCalculation);67 impactAndReplacementValues.Add(node, new Tuple<double, double>(impactValue, replacementValue));68 }69 return impactAndReplacementValues;70 }71 72 64 protected override void btnOptimizeConstants_Click(object sender, EventArgs e) { 73 65
Note: See TracChangeset
for help on using the changeset viewer.