Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/16/11 16:34:31 (13 years ago)
Author:
gkronber
Message:

#1418 Implemented interactive simplifier views for symbolic classification and regression.

File:
1 edited

Legend:

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

    r5681 r5717  
    3838  [Item("DiscriminantFunctionClassificationSolution", "Represents a classification solution that uses a discriminant function and classification thresholds.")]
    3939  public class DiscriminantFunctionClassificationSolution : ClassificationSolution, IDiscriminantFunctionClassificationSolution {
     40    public new IDiscriminantFunctionClassificationModel Model {
     41      get { return (IDiscriminantFunctionClassificationModel)base.Model; }
     42      protected set { base.Model = value; }
     43    }
     44
    4045    [StorableConstructor]
    4146    protected DiscriminantFunctionClassificationSolution(bool deserializing) : base(deserializing) { }
     
    4853    public DiscriminantFunctionClassificationSolution(IDiscriminantFunctionClassificationModel model, IClassificationProblemData problemData)
    4954      : base(model, problemData) {
    50       Model.ThresholdsChanged += new EventHandler(Model_ThresholdsChanged);
    51     }
    52 
    53     #region IDiscriminantFunctionClassificationSolution Members
    54 
    55     public new IDiscriminantFunctionClassificationModel Model {
    56       get { return (IDiscriminantFunctionClassificationModel)base.Model; }
    5755    }
    5856
     
    7270      return Model.GetEstimatedValues(ProblemData.Dataset, rows);
    7371    }
    74 
    75     public IEnumerable<double> Thresholds {
    76       get {
    77         return Model.Thresholds;
    78       }
    79       set { Model.Thresholds = new List<double>(value); }
    80     }
    81 
    82     public event EventHandler ThresholdsChanged;
    83 
    84     private void Model_ThresholdsChanged(object sender, EventArgs e) {
    85       OnThresholdsChanged(e);
    86     }
    87 
    88     protected virtual void OnThresholdsChanged(EventArgs e) {
    89       var listener = ThresholdsChanged;
    90       if (listener != null) listener(this, e);
    91     }
    92     #endregion
    9372  }
    9473}
Note: See TracChangeset for help on using the changeset viewer.