Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/15/19 14:52:20 (6 years ago)
Author:
abeham
Message:

#2457: adapted to trunk

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  
    2020#endregion
    2121
     22using System;
     23using System.Collections.Generic;
     24using System.ComponentModel;
     25using System.Linq;
     26using System.Text.RegularExpressions;
     27using System.Windows.Forms;
     28using System.Windows.Forms.DataVisualization.Charting;
    2229using HeuristicLab.Analysis;
    2330using HeuristicLab.Analysis.QualityAnalysis;
     
    3441using HeuristicLab.Optimization.Views;
    3542using 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;
    4343
    4444namespace HeuristicLab.OptimizationExpertSystem {
     
    224224      progress.ProgressStateChanged += OkbDownloadProgressOnStateChanged;
    225225      Content.UpdateKnowledgeBaseAsync(progress);
    226       MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().AddOperationProgressToView(progressPanel, progress);
     226      Progress.ShowOnControl(progressPanel, progress);
    227227      progressPanel.Visible = true;
    228228      SetEnabledStateOfControls();
  • branches/2457_ExpertSystem/HeuristicLab.OptimizationExpertSystem/3.3/Views/KnowledgeCenterViewBase.cs

    r13787 r16958  
    2020#endregion
    2121
     22using System;
    2223using HeuristicLab.Common;
    2324using HeuristicLab.MainForm;
     
    2526using HeuristicLab.Optimization;
    2627using HeuristicLab.OptimizationExpertSystem.Common;
    27 using System;
    2828
    2929namespace HeuristicLab.OptimizationExpertSystem {
     
    146146    private void ContentOnDownloadStarted(object sender, EventArgs<IProgress> e) {
    147147      if (InvokeRequired) { Invoke((Action<object, EventArgs<IProgress>>)ContentOnDownloadStarted, sender, e); return; }
    148       MainForm.AddOperationProgressToView(this, e.Value);
     148      //MainForm.AddOperationProgressToView(this, e.Value);
    149149      e.Value.ProgressStateChanged += ProgressOnStateChanged;
    150150      OnDownloadStarted(e.Value);
  • branches/2457_ExpertSystem/HeuristicLab.OptimizationExpertSystem/3.3/Views/PerformanceModelingView.cs

    r13878 r16958  
    2020#endregion
    2121
     22using System;
     23using System.Collections.Generic;
     24using System.Linq;
     25using System.Threading.Tasks;
    2226using HeuristicLab.Analysis;
    2327using HeuristicLab.Common.Resources;
     
    2832using HeuristicLab.OptimizationExpertSystem.Common;
    2933using HeuristicLab.PluginInfrastructure;
    30 using System;
    31 using System.Collections.Generic;
    32 using System.Linq;
    33 using System.Threading.Tasks;
    3434
    3535namespace HeuristicLab.OptimizationExpertSystem {
     
    153153    private void xValidateButton_Click(object sender, EventArgs e) {
    154154      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");
    156156      var topN = (int)topNComboBox.SelectedItem;
    157157      Task.Factory.StartNew(() => { DoCrossvalidate(recommender, topN, progress); }, TaskCreationOptions.LongRunning);
     
    188188          var observed = Content.GetAlgorithmPerformanceLog10(pi);
    189189          if (observed.Count == 0) continue;
    190           progress.Status = pi.Name + "...";
     190          progress.Message = pi.Name + "...";
    191191          var model = recommender.TrainModel(trainingSet.Where(x => x != pi).ToArray(), Content, features);
    192192          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.