Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/13/17 15:16:43 (7 years ago)
Author:
bburlacu
Message:

#2760: Implement shuffling of crossvalidation samples.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis.Views/3.4/CrossValidationView.cs

    r14185 r14864  
    197197
    198198    #region GUI events
     199    private void shuffleSamplesCheckBox_CheckedChanged(object sender, EventArgs e) {
     200      Content.ShuffleSamples.Value = shuffleSamplesCheckBox.Checked;
     201    }
    199202    private void foldsNumericUpDown_Validated(object sender, EventArgs e) {
    200203      if (foldsNumericUpDown.Text == string.Empty)
     
    238241        try {
    239242          Content.Algorithm = (IAlgorithm)algorithmTypeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType();
    240         }
    241         catch (Exception ex) {
     243        } catch (Exception ex) {
    242244          ErrorHandling.ShowErrorDialog(this, ex);
    243245        }
     
    250252        algorithmTabControl.Enabled = false;
    251253
    252         ContentManager.LoadAsync(openFileDialog.FileName, delegate(IStorableContent content, Exception error) {
     254        ContentManager.LoadAsync(openFileDialog.FileName, delegate (IStorableContent content, Exception error) {
    253255          try {
    254256            if (error != null) throw error;
     
    258260            else
    259261              Content.Algorithm = algorithm;
    260           }
    261           catch (Exception ex) {
     262          } catch (Exception ex) {
    262263            ErrorHandling.ShowErrorDialog(this, ex);
    263           }
    264           finally {
    265             Invoke(new Action(delegate() {
     264          } finally {
     265            Invoke(new Action(delegate () {
    266266              algorithmTabControl.Enabled = true;
    267267            }));
     
    289289        algorithmProblemViewHost.Enabled = false;
    290290
    291         ContentManager.LoadAsync(openFileDialog.FileName, delegate(IStorableContent content, Exception error) {
     291        ContentManager.LoadAsync(openFileDialog.FileName, delegate (IStorableContent content, Exception error) {
    292292          try {
    293293            if (error != null) throw error;
     
    298298            else
    299299              Content.Problem = problem;
    300           }
    301           catch (Exception ex) {
     300          } catch (Exception ex) {
    302301            Invoke(new Action(() => ErrorHandling.ShowErrorDialog(this, ex)));
    303           }
    304           finally {
    305             Invoke(new Action(delegate() {
     302          } finally {
     303            Invoke(new Action(delegate () {
    306304              algorithmProblemViewHost.Enabled = true;
    307305              newProblemButton.Enabled = openProblemButton.Enabled = true;
     
    357355    }
    358356    #endregion
    359 
    360357  }
    361358}
Note: See TracChangeset for help on using the changeset viewer.