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
Location:
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/DataAnalysisProblem.cs

    r4068 r4118  
    5050    #endregion
    5151
     52    [StorableConstructor]
     53    protected DataAnalysisProblem(bool deserializing) : base(deserializing) { }
    5254    public DataAnalysisProblem()
    5355      : base() {
     
    5658      RegisterParameterValueEvents();
    5759    }
    58 
    59     [StorableConstructor]
    60     private DataAnalysisProblem(bool deserializing) : base() { }
    6160
    6261    [StorableHook(HookType.AfterDeserialization)]
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/SupportVectorMachine/ParameterAdjustmentProblem/SupportVectorMachineParameterAdjustmentProblem.cs

    r4100 r4118  
    129129
    130130    [StorableConstructor]
    131     private SupportVectorMachineParameterAdjustmentProblem(bool deserializing) : base() { }
     131    private SupportVectorMachineParameterAdjustmentProblem(bool deserializing) : base(deserializing) { }
    132132    public SupportVectorMachineParameterAdjustmentProblem()
    133133      : base() {
     
    216216    #region Helpers
    217217    [StorableHook(HookType.AfterDeserialization)]
     218    private void AfterDeserializationHook() {
     219      // BackwardsCompatibility3.3
     220      #region Backwards compatible code (remove with 3.4)
     221      if (operators == null) InitializeOperators();
     222      #endregion
     223      AttachEventHandlers();
     224    }
     225
    218226    private void AttachEventHandlers() {
    219       // Start BackwardsCompatibility3.3 (remove with 3.4)
    220       if (operators == null) InitializeOperators();
    221       // End BackwardsCompatibility3.3
    222227      SolutionCreatorParameter.ValueChanged += new EventHandler(SolutionCreatorParameter_ValueChanged);
    223228      SolutionCreator.RealVectorParameter.ActualNameChanged += new EventHandler(SolutionCreator_RealVectorParameter_ActualNameChanged);
Note: See TracChangeset for help on using the changeset viewer.