Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/16/12 14:30:54 (11 years ago)
Author:
bburlacu
Message:

#1763: Added HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views and HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views to the branch. Removed prune button, minor functionality improvements.

Location:
branches/HeuristicLab.TreeSimplifier
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.TreeSimplifier

    • Property svn:mergeinfo set to (toggle deleted branches)
      /branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views5700-5808
  • branches/HeuristicLab.TreeSimplifier/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views/3.4/InteractiveSymbolicDiscriminantFunctionClassificationSolutionSimplifierView.cs

    r8636 r8916  
    2020#endregion
    2121
     22using System;
     23using System.Collections.Generic;
    2224using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2325
    2426namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views {
    2527  public partial class InteractiveSymbolicDiscriminantFunctionClassificationSolutionSimplifierView : InteractiveSymbolicClassificationSolutionSimplifierViewBase {
     28    private readonly SymbolicDiscriminantFunctionClassificationSolutionImpactValuesCalculator calculator;
    2629
    2730    public new SymbolicDiscriminantFunctionClassificationSolution Content {
     
    3033    }
    3134
    32     public InteractiveSymbolicDiscriminantFunctionClassificationSolutionSimplifierView() : base() { }
     35    public InteractiveSymbolicDiscriminantFunctionClassificationSolutionSimplifierView()
     36      : base() {
     37      InitializeComponent();
     38      this.Caption = "Interactive Classification Solution Simplifier";
     39
     40      calculator = new SymbolicDiscriminantFunctionClassificationSolutionImpactValuesCalculator();
     41    }
    3342
    3443    protected override void UpdateModel(ISymbolicExpressionTree tree) {
     
    3746      Content.Model = (ISymbolicDiscriminantFunctionClassificationModel)model;
    3847    }
     48
     49    protected override Dictionary<ISymbolicExpressionTreeNode, double> CalculateReplacementValues(ISymbolicExpressionTree tree) {
     50      return calculator.CalculateReplacementValues(tree, Content.Model.Interpreter, Content.ProblemData);
     51    }
     52
     53    protected override Dictionary<ISymbolicExpressionTreeNode, double> CalculateImpactValues(ISymbolicExpressionTree tree) {
     54      return calculator.CalculateImpactValues(tree, Content.Model.Interpreter, Content.ProblemData,
     55                                               Content.Model.LowerEstimationLimit, Content.Model.UpperEstimationLimit);
     56    }
     57
     58    protected override void btnOptimizeConstants_Click(object sender, EventArgs e) {
     59
     60    }
    3961  }
    4062}
Note: See TracChangeset for help on using the changeset viewer.