Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/10/15 11:45:11 (9 years ago)
Author:
mkommend
Message:

#2543: Intialized class names cache after cloning and loading of classification problem data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationProblemData.cs

    r12509 r13446  
    283283    private void AfterDeserialization() {
    284284      RegisterParameterEvents();
     285
     286      classNamesCache = new List<string>();
     287      for (int i = 0; i < ClassNamesParameter.Value.Rows; i++)
     288        classNamesCache.Add(ClassNamesParameter.Value[i, 0]);
     289
    285290      // BackwardsCompatibility3.4
    286291      #region Backwards compatible code, remove with 3.5
     
    297302      : base(original, cloner) {
    298303      RegisterParameterEvents();
     304      classNamesCache = new List<string>();
     305      for (int i = 0; i < ClassNamesParameter.Value.Rows; i++)
     306        classNamesCache.Add(ClassNamesParameter.Value[i, 0]);
    299307    }
    300308    public override IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset for help on using the changeset viewer.