Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/16/16 12:04:56 (8 years ago)
Author:
pfleck
Message:

#2632

  • Added the name of the target variable in plots and charts (scatter, line, ...).
  • Renamed MathSymbolicDataAnalysisModelView and added two subclasses for regression and classification that shows the name of the target variable in the equation. (added and used a new Format method to the LatexFormatter that uses the actual target name when encountering the StartSymbol)
File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/SymbolicDataAnalysisModelMathView.cs

    r14254 r14255  
    2929  [View("Mathematical Representation")]
    3030  [Content(typeof(ISymbolicDataAnalysisModel))]
    31   public partial class MathSymbolicDataAnalysisModelView : AsynchronousContentView {
    32     private SymbolicDataAnalysisExpressionLatexFormatter formatter = new SymbolicDataAnalysisExpressionLatexFormatter();
    33     public MathSymbolicDataAnalysisModelView()
     31  public partial class SymbolicDataAnalysisModelMathView : AsynchronousContentView {
     32    protected readonly SymbolicDataAnalysisExpressionLatexFormatter Formatter = new SymbolicDataAnalysisExpressionLatexFormatter();
     33    public SymbolicDataAnalysisModelMathView()
    3434      : base() {
    3535      InitializeComponent();
     
    6060      if (Content != null) {
    6161        HtmlElement newElement = webBrowser.Document.GetElementById("model");
    62         newElement.InnerText = formatter.Format(Content.SymbolicExpressionTree);
     62        newElement.InnerText = GetFormattedTree();
    6363        webBrowser.Document.InvokeScript("refreshModel");
    6464      } else {
     
    6767      }
    6868    }
     69
     70    protected virtual string GetFormattedTree() {
     71      return Formatter.Format(Content.SymbolicExpressionTree);
     72    }
    6973  }
    7074}
Note: See TracChangeset for help on using the changeset viewer.