Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/07/11 18:11:23 (13 years ago)
Author:
gkronber
Message:

#1418 renamed interface for interpreter, worked on solutions and models and implemented SVM regression.

Location:
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/ClassificationSolution.cs

    r5620 r5624  
    4343      : base(original, cloner) {
    4444    }
    45     public ClassificationSolution()
    46       : base() {
     45    public ClassificationSolution(IClassificationModel model, IClassificationProblemData problemData)
     46      : base(model, problemData) {
    4747      DoubleArray thresholds = new DoubleArray();
    4848      Add(new Result(ThresholdsResultsName, "The threshold values for class boundaries.", thresholds));
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/DataAnalysisSolution.cs

    r5620 r5624  
    3030using HeuristicLab.Optimization;
    3131using System;
     32using System.Drawing;
    3233
    3334namespace HeuristicLab.Problems.DataAnalysis {
     
    3940    private const string ModelResultName = "Model";
    4041    private const string ProblemDataResultName = "ProblemData";
     42
     43    public override Image ItemImage {
     44      get { return HeuristicLab.Common.Resources.VSImageLibrary.Function; }
     45    }
     46
    4147    #region properties
    42 
    4348    public IDataAnalysisModel Model {
    4449      get { return (IDataAnalysisModel)this[ModelResultName].Value; }
    45       set {
    46         if (this[ModelResultName].Value != value) {
    47           if (value != null) {
    48             this[ModelResultName].Value = value;
    49             OnModelChanged(EventArgs.Empty);
    50           }
    51         }
    52       }
     50      //set {
     51      //  if (this[ModelResultName].Value != value) {
     52      //    if (value != null) {
     53      //      this[ModelResultName].Value = value;
     54      //      OnModelChanged(EventArgs.Empty);
     55      //    }
     56      //  }
     57      //}
    5358    }
    5459
    5560    public IDataAnalysisProblemData ProblemData {
    5661      get { return (IDataAnalysisProblemData)this[ProblemDataResultName].Value; }
    57       set {
    58         if (this[ProblemDataResultName].Value != value) {
    59           if (value != null) {
    60             this[ProblemDataResultName].Value = value;
    61             OnProblemDataChanged(EventArgs.Empty);
    62           }
    63         }
    64       }
     62      //set {
     63      //  if (this[ProblemDataResultName].Value != value) {
     64      //    if (value != null) {
     65      //      ProblemData.Changed -= new EventHandler(ProblemData_Changed);
     66      //      this[ProblemDataResultName].Value = value;
     67      //      ProblemData.Changed += new EventHandler(ProblemData_Changed);
     68      //      OnProblemDataChanged(EventArgs.Empty);
     69      //    }
     70      //  }
     71      //}
    6572    }
    6673    #endregion
     
    7380      description = original.Description;
    7481    }
    75     public DataAnalysisSolution()
     82    public DataAnalysisSolution(IDataAnalysisModel model, IDataAnalysisProblemData problemData)
    7683      : base() {
    7784      name = string.Empty;
    7885      description = string.Empty;
    79       Add(new Result(ModelResultName, "The symbolic data analysis model.", typeof(IDataAnalysisModel)));
    80       Add(new Result(ProblemDataResultName, "The symbolic data analysis problem data.", typeof(IDataAnalysisProblemData)));
     86      Add(new Result(ModelResultName, "The symbolic data analysis model.", model));
     87      Add(new Result(ProblemDataResultName, "The symbolic data analysis problem data.", problemData));
     88
     89      problemData.Changed += new EventHandler(ProblemData_Changed);
     90    }
     91
     92    private void ProblemData_Changed(object sender, EventArgs e) {
     93      OnProblemDataChanged(e);
    8194    }
    8295
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/RegressionSolution.cs

    r5620 r5624  
    4242      : base(original, cloner) {
    4343    }
    44     public RegressionSolution()
    45       : base() {
     44    public RegressionSolution(IRegressionModel model, IRegressionProblemData problemData)
     45      : base(model, problemData) {
    4646    }
    4747
Note: See TracChangeset for help on using the changeset viewer.