Free cookie consent management tool by TermsFeed Policy Generator

source: branches/DataAnalysisService/HeuristicLab.ExperimentGeneration.DataAnalysis.ExperimentWizard/3.3/SelectAnalysisPage.cs @ 14601

Last change on this file since 14601 was 8033, checked in by spimming, 12 years ago

#1807:

  • scenario description added
  • page size fixed
File size: 3.0 KB
Line 
1
2using System;
3namespace HeuristicLab.ExperimentGeneration.DataAnalysis.ExperimentWizard {
4  public partial class SelectAnalysisPage : HeuristicLab.ExperimentGeneration.DataAnalysis.Wizard.WizardPage {
5    private const string descMediumScenario = "Support Vector Regression \r\n" +
6                                               "Nu: 0.1 ... 0.9 \r\n" +
7                                               "Cost: 0.03125 ... 32768 \r\n" +
8                                               "Gama: 0.0000610352 ... 64 \r\n" +
9                                               "\r\n" +
10                                               "Random Forest Regression \r\n" +
11                                               "R: 0.1 ... 0.7 \r\n" +
12                                               "Number of trees: 250 \r\n" +
13                                               "\r\n" +
14                                               "Neural Network Regression \r\n" +
15                                               "Decay: 0.001 ... 100 \r\n" +
16                                               "NodesInFirstHiddenLayer: 1 ... 100 \r\n" +
17                                               "\r\n" +
18                                               "Offspring Selection Genetic Algorithm \r\n" +
19                                               "ComparisonFactorLowerBound: 1 \r\n" +
20                                               "MaximumEvaluatedSolutions: 500000 \r\n" +
21                                               "MaximumGenerations: 100 \r\n" +
22                                               "MutationProbability: 0.15 \r\n" +
23                                               "PopulationSize: 500 \r\n" +
24                                               "Max. Tree Depth: 8; 12; 17 \r\n" +
25                                               "Max. Tree Length: 25; 125; 250 \r\n";
26
27
28    private DataAnalysisWizardContext context;
29    public DataAnalysisWizardContext Context {
30      get { return context; }
31    }
32
33    public SelectAnalysisPage(DataAnalysisWizardContext context) {
34      InitializeComponent();
35      this.context = context;
36      txtMediumAnalysis.Text = descMediumScenario;
37    }
38
39    private void SelectAnalysisPage_SetActive(object sender, System.ComponentModel.CancelEventArgs e) {
40      SetWizardButton(Wizard.WizardButtons.Next);
41    }
42
43    private void SelectAnalysisPage_WizardNext(object sender, Wizard.WizardPageEventArgs e) {
44      if (rbSmall.Checked) {
45        context.SelectedAnalysis = rbSmall.Text;
46        e.NewPage = "WizardPage";
47      } else if (rbMedium.Checked) {
48        context.SelectedAnalysis = rbMedium.Text;
49        e.NewPage = "MediumAnalysisPage";
50      } else if (rbLarge.Checked) {
51        context.SelectedAnalysis = rbLarge.Text;
52        e.NewPage = "WizardPage";
53      }
54        //else if (rbCustom.Checked) {
55        //  context.SelectedAnalysis = rbCustom.Text;
56        //  e.NewPage = "WizardPage";
57        //}
58      else {
59        throw new SystemException("Undefined data analysis selected.");
60      }
61    }
62  }
63}
Note: See TracBrowser for help on using the repository browser.