- Timestamp:
- 09/03/09 15:00:23 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SupportVectorMachines/3.2/SVMModelView.cs
r2322 r2328 33 33 public partial class SVMModelView : ViewBase { 34 34 private SVMModel model; 35 35 public SVMModelView() : base() { 36 InitializeComponent(); 37 } 36 38 public SVMModelView(SVMModel model) : base() { 37 39 InitializeComponent(); 38 40 this.model = model; 39 model.Changed += (sender, args) => UpdateControls();41 model.Changed += (sender, args) => Refresh(); 40 42 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")); 51 48 } 52 49 }
Note: See TracChangeset
for help on using the changeset viewer.