Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking/3.4/RegressionSolutionImpactValuesCalculator.cs @ 7515

Last change on this file since 7515 was 7515, checked in by bburlacu, 12 years ago

#1772: Added tracking for mutation operators.

File size: 1.2 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Core;
6using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
7using HeuristicLab.Optimization;
8using HeuristicLab.Parameters;
9using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
10using HeuristicLab.Problems.DataAnalysis;
11using HeuristicLab.Problems.DataAnalysis.Symbolic;
12using HeuristicLab.Problems.DataAnalysis.Symbolic.Regression;
13using HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views;
14
15namespace HeuristicLab.EvolutionaryTracking {
16  [Item("RegressionSolutionImpactValuesCalculator", "Wrapper class for calculating node impact values")]
17  [StorableClass]
18  class RegressionSolutionImpactValuesCalculator : InteractiveSymbolicRegressionSolutionSimplifierView {
19    public IDictionary<ISymbolicExpressionTreeNode, double> CalculateImpactValues(ISymbolicExpressionTree tree, ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, IRegressionProblemData problemData) {
20      var model = new SymbolicRegressionModel(tree, interpreter);
21      Content = new SymbolicRegressionSolution(model, problemData);
22      return CalculateImpactValues(tree);
23    }
24  }
25}
Note: See TracBrowser for help on using the repository browser.