Changeset 7912 for branches/DataAnalysisService/HeuristicLab.ExperimentGeneration.DataAnalysis.ExperimentWizard
- Timestamp:
- 05/25/12 17:42:12 (13 years ago)
- Location:
- branches/DataAnalysisService/HeuristicLab.ExperimentGeneration.DataAnalysis.ExperimentWizard/3.3
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysisService/HeuristicLab.ExperimentGeneration.DataAnalysis.ExperimentWizard/3.3/DataAnalysisExperimentWizard.cs
r7824 r7912 14 14 wizard.AddPage(new SelectAnalysisPage(context)); 15 15 wizard.AddPage(new WizardPage()); 16 wizard.AddPage(new MediumAnalysisPage()); 16 wizard.AddPage(new MediumAnalysisPage(context)); 17 wizard.AddPage(new ExperimentViewPage(context)); 17 18 18 19 } -
branches/DataAnalysisService/HeuristicLab.ExperimentGeneration.DataAnalysis.ExperimentWizard/3.3/DataAnalysisWizardContext.cs
r7824 r7912 1 1 2 using HeuristicLab.Optimization; 2 3 using HeuristicLab.Problems.DataAnalysis; 3 4 namespace HeuristicLab.ExperimentGeneration.DataAnalysis.ExperimentWizard { … … 5 6 public IDataAnalysisProblem Problem { get; set; } 6 7 public string SelectedAnalysis { get; set; } 8 public Experiment Experiment { get; set; } 7 9 } 8 10 } -
branches/DataAnalysisService/HeuristicLab.ExperimentGeneration.DataAnalysis.ExperimentWizard/3.3/HeuristicLab.ExperimentGeneration.DataAnalysis.ExperimentWizard.csproj
r7824 r7912 38 38 </PropertyGroup> 39 39 <ItemGroup> 40 <Reference Include="HeuristicLab.Algorithms.DataAnalysis-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" /> 40 41 <Reference Include="HeuristicLab.Algorithms.DataAnalysis.Views-3.4"> 41 42 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Algorithms.DataAnalysis.Views-3.4.dll</HintPath> … … 108 109 <Compile Include="DataAnalysisExperimentWizard.cs" /> 109 110 <Compile Include="DataAnalysisWizardContext.cs" /> 111 <Compile Include="ExperimentViewPage.cs"> 112 <SubType>UserControl</SubType> 113 </Compile> 114 <Compile Include="ExperimentViewPage.Designer.cs"> 115 <DependentUpon>ExperimentViewPage.cs</DependentUpon> 116 </Compile> 110 117 <Compile Include="ExperimentWizardMenuItem.cs" /> 111 118 <Compile Include="MediumAnalysisPage.cs"> … … 142 149 </ItemGroup> 143 150 <ItemGroup> 151 <EmbeddedResource Include="ExperimentViewPage.resx"> 152 <DependentUpon>ExperimentViewPage.cs</DependentUpon> 153 </EmbeddedResource> 144 154 <EmbeddedResource Include="MediumAnalysisPage.resx"> 145 155 <DependentUpon>MediumAnalysisPage.cs</DependentUpon> … … 156 166 </ItemGroup> 157 167 <ItemGroup> 168 <ProjectReference Include="..\..\HeuristicLab.Encodings.ParameterConfigurationTreeEncoding\3.3\HeuristicLab.Encodings.ParameterConfigurationTreeEncoding.csproj"> 169 <Project>{8BF5F8CB-C876-4EA6-B6D7-F0D8B14DDF6E}</Project> 170 <Name>HeuristicLab.Encodings.ParameterConfigurationTreeEncoding</Name> 171 </ProjectReference> 158 172 <ProjectReference Include="..\..\HeuristicLab.ExperimentGeneration.DataAnalysis.Wizard\3.3\HeuristicLab.ExperimentGeneration.DataAnalysis.Wizard.csproj"> 159 173 <Project>{77169FE1-C48A-49AE-A0DD-67921D7835AB}</Project> -
branches/DataAnalysisService/HeuristicLab.ExperimentGeneration.DataAnalysis.ExperimentWizard/3.3/MediumAnalysisPage.Designer.cs
r7824 r7912 24 24 /// </summary> 25 25 private void InitializeComponent() { 26 this.progressBar1 = new System.Windows.Forms.ProgressBar(); 26 27 this.label1 = new System.Windows.Forms.Label(); 27 28 this.SuspendLayout(); … … 32 33 this.wizardBanner.Title = "Medium Analysis"; 33 34 // 35 // progressBar1 36 // 37 this.progressBar1.Anchor = System.Windows.Forms.AnchorStyles.None; 38 this.progressBar1.Location = new System.Drawing.Point(0, 143); 39 this.progressBar1.Name = "progressBar1"; 40 this.progressBar1.Size = new System.Drawing.Size(320, 23); 41 this.progressBar1.TabIndex = 2; 42 // 34 43 // label1 35 44 // 36 45 this.label1.AutoSize = true; 37 this.label1.Location = new System.Drawing.Point( 106, 124);46 this.label1.Location = new System.Drawing.Point(0, 124); 38 47 this.label1.Name = "label1"; 39 48 this.label1.Size = new System.Drawing.Size(35, 13); 40 this.label1.TabIndex = 1;49 this.label1.TabIndex = 3; 41 50 this.label1.Text = "label1"; 42 51 // … … 45 54 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 46 55 this.Controls.Add(this.label1); 56 this.Controls.Add(this.progressBar1); 47 57 this.Name = "MediumAnalysisPage"; 58 this.SetActive += new System.ComponentModel.CancelEventHandler(this.MediumAnalysisPage_SetActive); 48 59 this.WizardBack += new HeuristicLab.ExperimentGeneration.DataAnalysis.Wizard.WizardPageEventHandler(this.MediumAnalysisPage_WizardBack); 60 this.Controls.SetChildIndex(this.progressBar1, 0); 49 61 this.Controls.SetChildIndex(this.label1, 0); 50 62 this.Controls.SetChildIndex(this.wizardBanner, 0); … … 56 68 #endregion 57 69 70 private System.Windows.Forms.ProgressBar progressBar1; 58 71 private System.Windows.Forms.Label label1; 72 59 73 } 60 74 } -
branches/DataAnalysisService/HeuristicLab.ExperimentGeneration.DataAnalysis.ExperimentWizard/3.3/MediumAnalysisPage.cs
r7824 r7912 1 1 2 using System.ComponentModel; 3 using System.Linq; 4 using HeuristicLab.Algorithms.DataAnalysis; 5 using HeuristicLab.Data; 6 using HeuristicLab.Encodings.ParameterConfigurationTreeEncoding; 7 using HeuristicLab.Optimization; 8 using HeuristicLab.Problems.DataAnalysis; 2 9 namespace HeuristicLab.ExperimentGeneration.DataAnalysis.ExperimentWizard { 3 10 public partial class MediumAnalysisPage : HeuristicLab.ExperimentGeneration.DataAnalysis.Wizard.WizardPage { 4 public MediumAnalysisPage() { 11 private BackgroundWorker worker; 12 13 private DataAnalysisWizardContext context; 14 public DataAnalysisWizardContext Context { 15 get { return context; } 16 } 17 18 public MediumAnalysisPage(DataAnalysisWizardContext context) { 5 19 InitializeComponent(); 20 this.context = context; 21 worker = new BackgroundWorker(); 22 worker.DoWork += new DoWorkEventHandler(GenerateExperimentsTask); 23 worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(WorkerCompleted); 24 25 } 26 27 private void GenerateExperimentsTask(object sender, DoWorkEventArgs e) { 28 DataAnalysisWizardContext c = e.Argument as DataAnalysisWizardContext; 29 IProblem problem = c.Problem; 30 SupportVectorRegression svr = new SupportVectorRegression(); 31 svr.Problem = (IRegressionProblem)problem; 32 ParameterConfigurationTree vc = new ParameterConfigurationTree(svr, problem); 33 var nuPc = vc.AlgorithmConfiguration.ParameterConfigurations.Where(x => x.ParameterName == "Nu").SingleOrDefault(); 34 nuPc.Optimize = true; 35 var nuVc = (RangeValueConfiguration)nuPc.ValueConfigurations.First(); 36 nuVc.Optimize = true; 37 nuVc.RangeConstraint = new DoubleValueRange(new DoubleValue(0.1), new DoubleValue(0.9), new DoubleValue(0.1)); 38 39 var costPc = vc.AlgorithmConfiguration.ParameterConfigurations.Where(x => x.ParameterName == "Cost").SingleOrDefault(); 40 costPc.Optimize = true; 41 var costVc = (RangeValueConfiguration)costPc.ValueConfigurations.First(); 42 costVc.Optimize = true; 43 costVc.RangeConstraint = new DoubleValueFactorRange(new DoubleValue(0.03125), new DoubleValue(32768), new DoubleValue(4)); 44 45 var gammaPc = vc.AlgorithmConfiguration.ParameterConfigurations.Where(x => x.ParameterName == "Gamma").SingleOrDefault(); 46 gammaPc.Optimize = true; 47 var gammaVc = (RangeValueConfiguration)gammaPc.ValueConfigurations.First(); 48 gammaVc.Optimize = true; 49 gammaVc.RangeConstraint = new DoubleValueFactorRange(new DoubleValue(6.10352E-05), new DoubleValue(64), new DoubleValue(4)); 50 51 Experiment experiment = vc.GenerateExperiment(svr); 52 e.Result = experiment; 53 } 54 55 private void WorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { 56 SetWizardButton(Wizard.WizardButtons.Next); 57 Experiment experiment = (Experiment)e.Result; 58 context.Experiment = experiment; 6 59 } 7 60 … … 9 62 e.NewPage = "SelectAnalysisPage"; 10 63 } 64 65 private void MediumAnalysisPage_SetActive(object sender, System.ComponentModel.CancelEventArgs e) { 66 SetWizardButton(Wizard.WizardButtons.None); 67 worker.RunWorkerAsync(context); 68 } 11 69 } 12 70 } -
branches/DataAnalysisService/HeuristicLab.ExperimentGeneration.DataAnalysis.ExperimentWizard/3.3/Plugin.cs.frame
r7808 r7912 29 29 [PluginFile("HeuristicLab.ExperimentGeneration.DataAnalysis.ExperimentWizard-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Algorithms.DataAnalysis.Views", "3.4")] 31 [PluginDependency("HeuristicLab.Algorithms.DataAnalysis", "3.4")] 31 32 [PluginDependency("HeuristicLab.Collections", "3.3")] 32 33 [PluginDependency("HeuristicLab.Common", "3.3")] … … 36 37 [PluginDependency("HeuristicLab.Data", "3.3")] 37 38 [PluginDependency("HeuristicLab.Data.Views", "3.3")] 39 [PluginDependency("HeuristicLab.Encodings.ParameterConfigurationTreeEncoding", "3.3")] 38 40 [PluginDependency("HeuristicLab.ExperimentGeneration.DataAnalysis.Wizard", "3.3")] 39 41 [PluginDependency("HeuristicLab.MainForm", "3.3")]
Note: See TracChangeset
for help on using the changeset viewer.