Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8716 for trunk


Ignore:
Timestamp:
10/02/12 09:52:59 (12 years ago)
Author:
mkommend
Message:

#1915: Corrected constructor of classification problem data to take class names into account.

File:
1 edited

Legend:

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

    r8554 r8716  
    280280      TestPartition.Start = classificationProblemData.TestPartition.Start;
    281281      TestPartition.End = classificationProblemData.TestPartition.End;
     282
     283      for (int i = 0; i < classificationProblemData.ClassNames.Count(); i++)
     284        ClassNamesParameter.Value[i, 0] = classificationProblemData.ClassNames.ElementAt(i);
    282285    }
    283286
     
    374377      TargetVariableParameter.ValueChanged += new EventHandler(TargetVariableParameter_ValueChanged);
    375378      ClassNamesParameter.Value.Reset += new EventHandler(Parameter_ValueChanged);
    376       ClassNamesParameter.Value.ItemChanged += new EventHandler<EventArgs<int, int>>(MatrixParameter_ItemChanged);
     379      ClassNamesParameter.Value.ItemChanged += new EventHandler<EventArgs<int, int>>(Parameter_ValueChanged);
    377380    }
    378381    private void DeregisterParameterEvents() {
    379382      TargetVariableParameter.ValueChanged -= new EventHandler(TargetVariableParameter_ValueChanged);
    380383      ClassNamesParameter.Value.Reset -= new EventHandler(Parameter_ValueChanged);
    381       ClassNamesParameter.Value.ItemChanged -= new EventHandler<EventArgs<int, int>>(MatrixParameter_ItemChanged);
     384      ClassNamesParameter.Value.ItemChanged -= new EventHandler<EventArgs<int, int>>(Parameter_ValueChanged);
    382385    }
    383386
     
    392395      OnChanged();
    393396    }
    394     private void MatrixParameter_ItemChanged(object sender, EventArgs<int, int> e) {
    395       classNamesCache = null;
    396       OnChanged();
    397     }
    398397    #endregion
    399398  }
Note: See TracChangeset for help on using the changeset viewer.