Changeset 8717
- Timestamp:
- 10/02/12 11:59:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationProblemData.cs
r8716 r8717 283 283 for (int i = 0; i < classificationProblemData.ClassNames.Count(); i++) 284 284 ClassNamesParameter.Value[i, 0] = classificationProblemData.ClassNames.ElementAt(i); 285 286 for (int i = 0; i < Classes; i++) { 287 for (int j = 0; j < Classes; j++) { 288 ClassificationPenaltiesParameter.Value[i, j] = classificationProblemData.GetClassificationPenalty(i, j); 289 } 290 } 285 291 } 286 292 … … 378 384 ClassNamesParameter.Value.Reset += new EventHandler(Parameter_ValueChanged); 379 385 ClassNamesParameter.Value.ItemChanged += new EventHandler<EventArgs<int, int>>(Parameter_ValueChanged); 386 ClassificationPenaltiesParameter.Value.ItemChanged += new EventHandler<EventArgs<int, int>>(Parameter_ValueChanged); 387 ClassificationPenaltiesParameter.Value.Reset += new EventHandler(Parameter_ValueChanged); 380 388 } 381 389 private void DeregisterParameterEvents() { … … 383 391 ClassNamesParameter.Value.Reset -= new EventHandler(Parameter_ValueChanged); 384 392 ClassNamesParameter.Value.ItemChanged -= new EventHandler<EventArgs<int, int>>(Parameter_ValueChanged); 393 ClassificationPenaltiesParameter.Value.ItemChanged -= new EventHandler<EventArgs<int, int>>(Parameter_ValueChanged); 394 ClassificationPenaltiesParameter.Value.Reset -= new EventHandler(Parameter_ValueChanged); 385 395 } 386 396 … … 393 403 private void Parameter_ValueChanged(object sender, EventArgs e) { 394 404 classNamesCache = null; 405 ClassificationPenaltiesParameter.Value.RowNames = ClassNames.Select(name => "Actual " + name); 406 ClassificationPenaltiesParameter.Value.ColumnNames = ClassNames.Select(name => "Estimated " + name); 395 407 OnChanged(); 396 408 }
Note: See TracChangeset
for help on using the changeset viewer.