Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/22/09 11:45:04 (15 years ago)
Author:
gkronber
Message:
  • Implemented cloning and persistence in data-modeling algorithms.
  • Fixed bugs in CEDMA controller.

#754

Location:
trunk/sources/HeuristicLab.CEDMA.Server/3.3
Files:
2 edited

Legend:

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

    r2376 r2377  
    101101      testSamplesStartTextBox.Text = selectedSpec.TestSamplesStart.ToString();
    102102      testSamplesEndTextBox.Text = selectedSpec.TestSamplesEnd.ToString();
     103      minTimeOffsetTextBox.Text = selectedSpec.MinTimeOffset.ToString();
     104      maxTimeOffsetTextBox.Text = selectedSpec.MaxTimeOffset.ToString();
     105      autoregressiveCheckBox.Checked = selectedSpec.AutoRegressive;
    103106    }
    104107
     
    134137
    135138    private void radioButton_CheckedChanged(object sender, EventArgs e) {
    136       string selectedTarget = (string)targetVariableList.SelectedItem;
    137139      minTimeOffsetLabel.Enabled = timeSeriesRadioButton.Checked;
    138140      minTimeOffsetTextBox.Enabled = timeSeriesRadioButton.Checked;
     
    144146      else if (classificationRadioButton.Checked) selectedSpec.LearningTask = LearningTask.Classification;
    145147      else if (regressionRadioButton.Checked) selectedSpec.LearningTask = LearningTask.Regression;
     148      var allowedAlgorithms = dispatcher.GetAllowedAlgorithms(selectedSpec.TargetVariable);
     149      foreach (var algo in allowedAlgorithms) {
     150        dispatcher.DisableAlgorithm(selectedSpec.TargetVariable, algo);
     151      }
    146152      UpdateAlgorithms();
    147153    }
  • trunk/sources/HeuristicLab.CEDMA.Server/3.3/SimpleDispatcher.cs

    r2375 r2377  
    145145      if (possibleAlgos.Count() > 0) selectedAlgorithm = possibleAlgos.ElementAt(random.Next(possibleAlgos.Count()));
    146146      if (selectedAlgorithm != null) {
     147        // create a clone of the algorithm template before setting the parameters
     148        selectedAlgorithm = (HeuristicLab.Modeling.IAlgorithm)selectedAlgorithm.Clone();
    147149        SetProblemParameters(selectedAlgorithm, problemSpecifications[targetVariable]);
    148150        if (!(selectedAlgorithm is IStochasticAlgorithm))
Note: See TracChangeset for help on using the changeset viewer.