- Timestamp:
- 05/15/19 14:52:20 (6 years ago)
- Location:
- branches/2457_ExpertSystem/HeuristicLab.OptimizationExpertSystem/3.3/Views
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2457_ExpertSystem/HeuristicLab.OptimizationExpertSystem/3.3/Views/KnowledgeCenterAllinOneView.cs
r13774 r16958 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.ComponentModel; 25 using System.Linq; 26 using System.Text.RegularExpressions; 27 using System.Windows.Forms; 28 using System.Windows.Forms.DataVisualization.Charting; 22 29 using HeuristicLab.Analysis; 23 30 using HeuristicLab.Analysis.QualityAnalysis; … … 34 41 using HeuristicLab.Optimization.Views; 35 42 using HeuristicLab.OptimizationExpertSystem.Common; 36 using System;37 using System.Collections.Generic;38 using System.ComponentModel;39 using System.Linq;40 using System.Text.RegularExpressions;41 using System.Windows.Forms;42 using System.Windows.Forms.DataVisualization.Charting;43 43 44 44 namespace HeuristicLab.OptimizationExpertSystem { … … 224 224 progress.ProgressStateChanged += OkbDownloadProgressOnStateChanged; 225 225 Content.UpdateKnowledgeBaseAsync(progress); 226 MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().AddOperationProgressToView(progressPanel, progress);226 Progress.ShowOnControl(progressPanel, progress); 227 227 progressPanel.Visible = true; 228 228 SetEnabledStateOfControls(); -
branches/2457_ExpertSystem/HeuristicLab.OptimizationExpertSystem/3.3/Views/KnowledgeCenterViewBase.cs
r13787 r16958 20 20 #endregion 21 21 22 using System; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.MainForm; … … 25 26 using HeuristicLab.Optimization; 26 27 using HeuristicLab.OptimizationExpertSystem.Common; 27 using System;28 28 29 29 namespace HeuristicLab.OptimizationExpertSystem { … … 146 146 private void ContentOnDownloadStarted(object sender, EventArgs<IProgress> e) { 147 147 if (InvokeRequired) { Invoke((Action<object, EventArgs<IProgress>>)ContentOnDownloadStarted, sender, e); return; } 148 MainForm.AddOperationProgressToView(this, e.Value);148 //MainForm.AddOperationProgressToView(this, e.Value); 149 149 e.Value.ProgressStateChanged += ProgressOnStateChanged; 150 150 OnDownloadStarted(e.Value); -
branches/2457_ExpertSystem/HeuristicLab.OptimizationExpertSystem/3.3/Views/PerformanceModelingView.cs
r13878 r16958 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Threading.Tasks; 22 26 using HeuristicLab.Analysis; 23 27 using HeuristicLab.Common.Resources; … … 28 32 using HeuristicLab.OptimizationExpertSystem.Common; 29 33 using HeuristicLab.PluginInfrastructure; 30 using System;31 using System.Collections.Generic;32 using System.Linq;33 using System.Threading.Tasks;34 34 35 35 namespace HeuristicLab.OptimizationExpertSystem { … … 153 153 private void xValidateButton_Click(object sender, EventArgs e) { 154 154 var recommender = (IAlgorithmInstanceRecommender)recommenderComboBox.SelectedItem; 155 var progress = MainForm.AddOperationProgressToView(this, "Performing Leave-one-out Crossvalidation");155 var progress = Progress.ShowOnControl(this, "Performing Leave-one-out Crossvalidation"); 156 156 var topN = (int)topNComboBox.SelectedItem; 157 157 Task.Factory.StartNew(() => { DoCrossvalidate(recommender, topN, progress); }, TaskCreationOptions.LongRunning); … … 188 188 var observed = Content.GetAlgorithmPerformanceLog10(pi); 189 189 if (observed.Count == 0) continue; 190 progress. Status= pi.Name + "...";190 progress.Message = pi.Name + "..."; 191 191 var model = recommender.TrainModel(trainingSet.Where(x => x != pi).ToArray(), Content, features); 192 192 var predictedTopN = model.GetRanking(pi).Take(topN).ToDictionary(x => x.Key, x => Math.Log10(x.Value));
Note: See TracChangeset
for help on using the changeset viewer.