Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/14/09 19:56:04 (15 years ago)
Author:
gkronber
Message:
  • introduced a variablename to index mapping for SVM models (to make sure we can use the model for prediction in the model analyzer)
  • added support to enable and disable algorithms in the dispatcher and removed DispatcherBase
  • fixed bugs when calculating variable impacts and reading the final model of GP algorithms

#722 (IModel should provide a Predict() method to get predicted values for an input vector)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Server/3.3/DispatcherView.cs

    r2258 r2290  
    1111namespace HeuristicLab.CEDMA.Server {
    1212  public partial class DispatcherView : ViewBase {
    13     private DispatcherBase dispatcher;
    14     public DispatcherView(DispatcherBase dispatcher)
     13    private SimpleDispatcher dispatcher;
     14    public DispatcherView(SimpleDispatcher dispatcher)
    1515      : base() {
    1616      this.dispatcher = dispatcher;
     
    2626      } else {
    2727        base.UpdateControls();
     28        algorithmsListBox.Items.Clear();
    2829        targetVariableList.Items.Clear();
    2930        inputVariableList.Items.Clear();
     
    3536        foreach (string inputVar in dispatcher.InputVariables) {
    3637          inputVariableList.Items.Add(inputVar, false);
     38        }
     39
     40        foreach (HeuristicLab.Modeling.IAlgorithm algo in dispatcher.Algorithms) {
     41          algorithmsListBox.Items.Add(algo, false);
    3742        }
    3843        targetVariableList.ClearSelected();
     
    8388      }
    8489    }
     90
     91    private void algorithmsListBox_ItemCheck(object sender, ItemCheckEventArgs e) {
     92      if(e.NewValue == CheckState.Checked) {
     93        dispatcher.EnableAlgorithm((HeuristicLab.Modeling.IAlgorithm)algorithmsListBox.Items[e.Index]);
     94      } else if(e.NewValue == CheckState.Unchecked) {
     95        dispatcher.DisableAlgorithm((HeuristicLab.Modeling.IAlgorithm)algorithmsListBox.Items[e.Index]);
     96      }
     97    }
    8598  }
    8699}
Note: See TracChangeset for help on using the changeset viewer.