Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/27/10 19:54:20 (14 years ago)
Author:
abeham
Message:

#1090

  • Fixed problem plugins reloading their operators on deserialization in following problems (forgot on them in the first commit)
    • SupportVectorRegressionProblem
    • SymbolicTimeSeriesPrognosisProblem
  • Fixed a bug in the FeatureSelectionProblem introduced in r4098
  • Fixed the issues mentioned in the code review of mkommend
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/SymbolicRegressionProblem.cs

    r4098 r4118  
    183183
    184184    [StorableConstructor]
    185     private SymbolicRegressionProblem(bool deserializing) : base() { }
     185    protected SymbolicRegressionProblem(bool deserializing) : base(deserializing) { }
    186186    public SymbolicRegressionProblem()
    187187      : base() {
     
    213213      UpdateEstimationLimits();
    214214      InitializeOperators();
    215       AttachEventHandlers();
     215      RegisterParameterEvents();
     216      RegisterParameterValueEvents();
    216217    }
    217218
     
    219220      SymbolicRegressionProblem clone = (SymbolicRegressionProblem)base.Clone(cloner);
    220221      clone.operators = operators.Select(x => (IOperator)cloner.Clone(x)).ToList();
    221       clone.AttachEventHandlers();
     222      clone.RegisterParameterEvents();
     223      clone.RegisterParameterValueEvents();
    222224      return clone;
    223225    }
     
    303305    #region Helpers
    304306    [StorableHook(HookType.AfterDeserialization)]
    305     private void AttachEventHandlers() {
    306       // Start BackwardsCompatibility3.3 (remove with 3.4)
     307    private void AfterDeserializationHook() {
     308      // BackwardsCompatibility3.3
     309      #region Backwards compatible code (remove with 3.4)
    307310      if (operators == null) InitializeOperators();
    308       // End BackwardsCompatibility3.3
     311      #endregion
    309312      RegisterParameterEvents();
    310313      RegisterParameterValueEvents();
Note: See TracChangeset for help on using the changeset viewer.