Free cookie consent management tool by TermsFeed Policy Generator

Changeset 15949


Ignore:
Timestamp:
06/05/18 14:33:12 (6 years ago)
Author:
bburlacu
Message:

#2886: Fix serialization (saving the algorithm).

Location:
branches/2886_SymRegGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.SymRegGrammarEnumeration/Analysis
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2886_SymRegGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.SymRegGrammarEnumeration/Analysis/RSquaredEvaluator.cs

    r15935 r15949  
    66using HeuristicLab.Data;
    77using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    8 using HeuristicLab.Optimization;
     8using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    99using HeuristicLab.Problems.DataAnalysis;
    1010using HeuristicLab.Problems.DataAnalysis.Symbolic;
     
    1212
    1313namespace HeuristicLab.Algorithms.DataAnalysis.SymRegGrammarEnumeration {
     14  [Item("RSquaredEvaluator", "")]
     15  [StorableClass]
    1416  public class RSquaredEvaluator : Item, IGrammarEnumerationAnalyzer {
    1517    public static readonly string BestTrainingQualityResultName = "Best R² (Training)";
     
    3436      algorithm.Started += OnStarted;
    3537      algorithm.Stopped += OnStopped;
    36 
    3738      algorithm.DistinctSentenceGenerated += AlgorithmOnDistinctSentenceGenerated;
    3839    }
  • branches/2886_SymRegGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.SymRegGrammarEnumeration/Analysis/SearchGraphVisualizer.cs

    r15910 r15949  
    55using HeuristicLab.Common;
    66using HeuristicLab.Core;
     7using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    78
    89namespace HeuristicLab.Algorithms.DataAnalysis.SymRegGrammarEnumeration {
    9   class SearchGraphVisualizer : Item, IGrammarEnumerationAnalyzer {
     10  [Item("SearchGraphVisualizer", "")]
     11  [StorableClass]
     12  internal class SearchGraphVisualizer : Item, IGrammarEnumerationAnalyzer {
    1013    private readonly string dotFileName = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) + @"\searchgraph.dot";
    1114
     
    1518
    1619    protected SearchGraphVisualizer(SearchGraphVisualizer original, Cloner cloner) : base(original, cloner) { }
     20
     21    [StorableConstructor]
     22    protected SearchGraphVisualizer(bool deserializing) : base(deserializing) { }
    1723
    1824    public override IDeepCloneable Clone(Cloner cloner) {
  • branches/2886_SymRegGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.SymRegGrammarEnumeration/Analysis/SentenceLogger.cs

    r15911 r15949  
    55using HeuristicLab.Common;
    66using HeuristicLab.Core;
     7using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    78
    89namespace HeuristicLab.Algorithms.DataAnalysis.SymRegGrammarEnumeration {
     10  [Item("SentenceLogger", "")]
     11  [StorableClass]
    912  public class SentenceLogger : Item, IGrammarEnumerationAnalyzer {
    1013    private readonly string workingDir = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
Note: See TracChangeset for help on using the changeset viewer.