Changeset 4780
- Timestamp:
- 11/12/10 13:25:24 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Classification/3.3/ClassificationProblemData.cs
r4722 r4780 255 255 } 256 256 257 protected override void OnProblemDataChanged(EventArgs e) { 258 base.OnProblemDataChanged(e); 259 UpdateClassValues(); 260 } 261 257 262 private void UpdateClassValues() { 258 263 sortedClassValues = Dataset.GetVariableValues(TargetVariable.Value).Distinct().ToList(); … … 271 276 } 272 277 ClassNames = array; 278 UpdateMisclassifciationMatrixHeaders(); 273 279 RegisterParameterValueEvents(); 274 280 } … … 304 310 305 311 private void UpdateMisclassifciationMatrixHeaders() { 306 MisclassificationMatrix.RowNames = ClassNames.Select(name => "Estimated " + name) ;307 MisclassificationMatrix.ColumnNames = ClassNames.Select(name => "Actual " + name) ;312 MisclassificationMatrix.RowNames = ClassNames.Select(name => "Estimated " + name).ToList() ; 313 MisclassificationMatrix.ColumnNames = ClassNames.Select(name => "Actual " + name).ToList(); 308 314 } 309 315 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/DataAnalysisProblemData.cs
r4722 r4780 405 405 InputVariables.SetItemCheckedState(variableNames.First(), false); 406 406 int middle = (int)(csvFileParser.Rows * 0.5); 407 TrainingSamplesEnd = new IntValue(middle); 407 408 TrainingSamplesStart = new IntValue(0); 408 T rainingSamplesEnd = new IntValue(middle);409 TestSamplesEnd = new IntValue(csvFileParser.Rows); 409 410 TestSamplesStart = new IntValue(middle); 410 TestSamplesEnd = new IntValue(csvFileParser.Rows);411 411 suppressEvents = false; 412 412 OnProblemDataChanged(EventArgs.Empty);
Note: See TracChangeset
for help on using the changeset viewer.