Changeset 2377 for trunk/sources/HeuristicLab.CEDMA.Server/3.3
- Timestamp:
- 09/22/09 11:45:04 (15 years ago)
- 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 101 101 testSamplesStartTextBox.Text = selectedSpec.TestSamplesStart.ToString(); 102 102 testSamplesEndTextBox.Text = selectedSpec.TestSamplesEnd.ToString(); 103 minTimeOffsetTextBox.Text = selectedSpec.MinTimeOffset.ToString(); 104 maxTimeOffsetTextBox.Text = selectedSpec.MaxTimeOffset.ToString(); 105 autoregressiveCheckBox.Checked = selectedSpec.AutoRegressive; 103 106 } 104 107 … … 134 137 135 138 private void radioButton_CheckedChanged(object sender, EventArgs e) { 136 string selectedTarget = (string)targetVariableList.SelectedItem;137 139 minTimeOffsetLabel.Enabled = timeSeriesRadioButton.Checked; 138 140 minTimeOffsetTextBox.Enabled = timeSeriesRadioButton.Checked; … … 144 146 else if (classificationRadioButton.Checked) selectedSpec.LearningTask = LearningTask.Classification; 145 147 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 } 146 152 UpdateAlgorithms(); 147 153 } -
trunk/sources/HeuristicLab.CEDMA.Server/3.3/SimpleDispatcher.cs
r2375 r2377 145 145 if (possibleAlgos.Count() > 0) selectedAlgorithm = possibleAlgos.ElementAt(random.Next(possibleAlgos.Count())); 146 146 if (selectedAlgorithm != null) { 147 // create a clone of the algorithm template before setting the parameters 148 selectedAlgorithm = (HeuristicLab.Modeling.IAlgorithm)selectedAlgorithm.Clone(); 147 149 SetProblemParameters(selectedAlgorithm, problemSpecifications[targetVariable]); 148 150 if (!(selectedAlgorithm is IStochasticAlgorithm))
Note: See TracChangeset
for help on using the changeset viewer.