Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/03/09 15:00:23 (15 years ago)
Author:
gkronber
Message:

this is the remaining part of changeset r2327.
Applied changes in modeling plugins that are necessary for the new model analyzer (#722)

  • predictor has properties for the lower and upper limit of the predicted value
  • added views for predictors that show the limits (also added a new view for GeneticProgrammingModel that shows the size and height of the model)
  • Reintroduced TreeEvaluatorInjectors that read a PunishmentFactor and calculate the lower and upper limits for estimated values (limits are set in the tree evaluators)
  • Added operators to create Predictors. Changed modeling algorithms to use the predictors for the calculation of final model qualities and variable impacts (to be compatible with the new model analyzer the predictors use a very large PunishmentFactor)
  • replaced all private implementations of double.IsAlmost and use HL.Commons instead (see #733 r2324)
  • Implemented operator SolutionExtractor and moved BestSolutionStorer from HL.Logging to HL.Modeling (fixes #734)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.SupportVectorMachines/3.2/SVMModelView.cs

    r2322 r2328  
    3333  public partial class SVMModelView : ViewBase {
    3434    private SVMModel model;
    35    
     35    public SVMModelView() : base() {
     36      InitializeComponent();
     37    }   
    3638    public SVMModelView(SVMModel model) : base() {
    3739      InitializeComponent();
    3840      this.model = model;
    39       model.Changed += (sender, args) => UpdateControls();
     41      model.Changed += (sender, args) => Refresh();
    4042
    41       UpdateControls();
    42     }
    43 
    44     protected override void UpdateControls() {
    45       base.UpdateControls();
    46       numberOfSupportVectors.Text = model.Model.SupportVectorCount.ToString();
    47       rho.Text = model.Model.Rho[0].ToString();
    48       svmType.Text = model.Model.Parameter.SvmType.ToString();
    49       kernelType.Text = model.Model.Parameter.KernelType.ToString();
    50       gamma.Text = model.Model.Parameter.Gamma.ToString();
     43      numberOfSupportVectors.DataBindings.Add(new Binding("Text", model.Model, "SupportVectorCount"));
     44      rho.DataBindings.Add(new Binding("Text", model.Model, "Rho"));
     45      svmType.DataBindings.Add(new Binding("Text", model.Model.Parameter, "SvmType"));
     46      kernelType.DataBindings.Add(new Binding("Text", model.Model.Parameter, "KernelType"));
     47      gamma.DataBindings.Add(new Binding("Text", model.Model.Parameter, "Gamma"));
    5148    }
    5249  }
Note: See TracChangeset for help on using the changeset viewer.