Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/15/20 17:09:10 (4 years ago)
Author:
abeham
Message:

#2521: worked on refactoring

  • add results to problem base classes
  • fix external evaluation problem
  • Add result descriptions
Location:
branches/2521_ProblemRefactoring/HeuristicLab.Analysis/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Analysis/3.3/AlleleFrequencyAnalysis/AlleleFrequencyAnalyzer.cs

    r17226 r17747  
    2323using System.Collections.Generic;
    2424using System.Linq;
     25using HEAL.Attic;
    2526using HeuristicLab.Common;
    2627using HeuristicLab.Core;
     
    2930using HeuristicLab.Optimization;
    3031using HeuristicLab.Parameters;
    31 using HEAL.Attic;
    3232
    3333namespace HeuristicLab.Analysis {
     
    165165        if (!ResultsParameter.ActualValue.ContainsKey(Name + " Results")) {
    166166          results = new ResultCollection();
    167           ResultsParameter.ActualValue.Add(new Result(Name + " Results", results));
     167          ResultsParameter.ActualValue.Add(new Result(Name + " Results", "Collection of allele frequency analysis results", results));
    168168        } else {
    169169          results = (ResultCollection)ResultsParameter.ActualValue[Name + " Results"].Value;
     
    173173        AlleleFrequencyCollection frequenciesCollection = new AlleleFrequencyCollection(frequencies);
    174174        if (!results.ContainsKey("Allele Frequencies"))
    175           results.Add(new Result("Allele Frequencies", frequenciesCollection));
     175          results.Add(new Result("Allele Frequencies", "Displays for all alleles in the population the frequencies with which these occur.", frequenciesCollection));
    176176        else
    177177          results["Allele Frequencies"].Value = frequenciesCollection;
     
    182182            AlleleFrequencyCollectionHistory history = new AlleleFrequencyCollectionHistory();
    183183            history.Add(frequenciesCollection);
    184             results.Add(new Result("Allele Frequencies History", history));
     184            results.Add(new Result("Allele Frequencies History", "Snapshots of the allele frequency of each generation.", history));
    185185          } else {
    186186            ((AlleleFrequencyCollectionHistory)results["Allele Frequencies History"].Value).Add(frequenciesCollection);
     
    215215          allelesTable.Rows["Lost Alleles of Best Known Solution"].VisualProperties.StartIndexZero = true;
    216216
    217           results.Add(new Result("Alleles", allelesTable));
     217          results.Add(new Result("Alleles", "Tabular summary of the allele frequency analysis", allelesTable));
    218218        } else {
    219219          allelesTable = (DataTable)results["Alleles"].Value;
     
    234234        // store alleles values
    235235        if (!results.ContainsKey("Unique Alleles"))
    236           results.Add(new Result("Unique Alleles", new DoubleValue(frequenciesCollection.Count)));
     236          results.Add(new Result("Unique Alleles", "The number of unique alleles currently in the population.", new DoubleValue(frequenciesCollection.Count)));
    237237        else
    238238          ((DoubleValue)results["Unique Alleles"].Value).Value = frequenciesCollection.Count;
    239239
    240240        if (!results.ContainsKey("Unique Alleles of Best Known Solution"))
    241           results.Add(new Result("Unique Alleles of Best Known Solution", new DoubleValue(uniqueRelevantAllelesCount)));
     241          results.Add(new Result("Unique Alleles of Best Known Solution", "The number of alleles from the best-known solution that are currently present in the population.", new DoubleValue(uniqueRelevantAllelesCount)));
    242242        else
    243243          ((DoubleValue)results["Unique Alleles of Best Known Solution"].Value).Value = uniqueRelevantAllelesCount;
    244244
    245245        if (!results.ContainsKey("Fixed Alleles"))
    246           results.Add(new Result("Fixed Alleles", new DoubleValue(fixedAllelesCount)));
     246          results.Add(new Result("Fixed Alleles", "The number of alleles, that are present in every individual of the population.", new DoubleValue(fixedAllelesCount)));
    247247        else
    248248          ((DoubleValue)results["Fixed Alleles"].Value).Value = fixedAllelesCount;
    249249
    250250        if (!results.ContainsKey("Fixed Alleles of Best Known Solution"))
    251           results.Add(new Result("Fixed Alleles of Best Known Solution", new DoubleValue(fixedRelevantAllelesCount)));
     251          results.Add(new Result("Fixed Alleles of Best Known Solution", "The number of alles from the best-known solution that are present in every individual of the population.", new DoubleValue(fixedRelevantAllelesCount)));
    252252        else
    253253          ((DoubleValue)results["Fixed Alleles of Best Known Solution"].Value).Value = fixedRelevantAllelesCount;
    254254
    255255        if (!results.ContainsKey("Lost Alleles of Best Known Solution"))
    256           results.Add(new Result("Lost Alleles of Best Known Solution", new DoubleValue(lostRelevantAllelesCount)));
     256          results.Add(new Result("Lost Alleles of Best Known Solution", "The number of alles from the best-known solution that are currently not present in the population.", new DoubleValue(lostRelevantAllelesCount)));
    257257        else
    258258          ((DoubleValue)results["Lost Alleles of Best Known Solution"].Value).Value = lostRelevantAllelesCount;
     
    282282
    283283          if (!results.ContainsKey("Scatter Plot"))
    284             results.Add(new Result("Scatter Plot", plot));
     284            results.Add(new Result("Scatter Plot", "A plot that shows the correlation between number of unique alleles that an individual shares with the best-known solution and its relative quality.", plot));
    285285          else
    286286            results["Scatter Plot"].Value = plot;
    287287          if (storeHistory) {
    288288            if (!results.ContainsKey("Scatter Plot History")) {
    289               results.Add(new Result("Scatter Plot History", new ScatterPlotHistory()));
     289              results.Add(new Result("Scatter Plot History", "Snapshots of the scatter plot that show correlation between shared alleles with best-known solution and relative solution quality.", new ScatterPlotHistory()));
    290290            }
    291291            ((ScatterPlotHistory)results["Scatter Plot History"].Value).Add(plot);
     
    300300
    301301          if (!results.ContainsKey("Average Contained Alleles of Best Known Solution"))
    302             results.Add(new Result("Average Contained Alleles of Best Known Solution", new DoubleValue(avgContainedReleventAlleles)));
     302            results.Add(new Result("Average Contained Alleles of Best Known Solution", "Average number of alleles that individuals share with the best-known solution.", new DoubleValue(avgContainedReleventAlleles)));
    303303          else
    304304            ((DoubleValue)results["Average Contained Alleles of Best Known Solution"].Value).Value = avgContainedReleventAlleles;
  • branches/2521_ProblemRefactoring/HeuristicLab.Analysis/3.3/BestScopeSolutionAnalyzer.cs

    r17383 r17747  
    124124        var solution = cloner.Clone(currentBestScope);
    125125
    126         results.Add(new Result(BestSolutionResultName, solution));
     126        results.Add(new Result(BestSolutionResultName, "The best solution found so far.", solution));
    127127      } else {
    128128        var bestSolution = (IScope)results[BestSolutionResultName].Value;
  • branches/2521_ProblemRefactoring/HeuristicLab.Analysis/3.3/MultiObjective/RankBasedParetoFrontAnalyzer.cs

    r17226 r17747  
    2222using System.Collections.Generic;
    2323using System.Linq;
     24using HEAL.Attic;
    2425using HeuristicLab.Common;
    2526using HeuristicLab.Core;
     
    2728using HeuristicLab.Optimization;
    2829using HeuristicLab.Parameters;
    29 using HEAL.Attic;
    3030
    3131namespace HeuristicLab.Analysis {
     
    7272      if (results.ContainsKey("Pareto Front"))
    7373        results["Pareto Front"].Value = front;
    74       else results.Add(new Result("Pareto Front", front));
     74      else results.Add(new Result("Pareto Front", "A tabular presentation of the current Pareto front.", front));
    7575
    7676      if (populationLevel) {
    7777        if (results.ContainsKey("Pareto Archive"))
    7878          results["Pareto Archive"].Value = paretoArchive;
    79         else results.Add(new Result("Pareto Archive", paretoArchive));
     79        else results.Add(new Result("Pareto Archive", "The individual solutions on the Pareto front.", paretoArchive));
    8080      }
    8181    }
Note: See TracChangeset for help on using the changeset viewer.