Changeset 4781


Ignore:
Timestamp:
11/12/10 13:48:32 (8 years ago)
Author:
mkommend
Message:

Corrected adaption of the test range (ticket #939).

File:
1 edited

Legend:

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

    r4780 r4781  
    246246      InputVariables.SetItemCheckedState(validTargetVariables.First(), false);
    247247      int middle = (int)(csvFileParser.Rows * 0.5);
     248      TrainingSamplesEnd = new IntValue(middle);
    248249      TrainingSamplesStart = new IntValue(0);
    249       TrainingSamplesEnd = new IntValue(middle);
     250      TestSamplesEnd = new IntValue(csvFileParser.Rows);
    250251      TestSamplesStart = new IntValue(middle);
    251       TestSamplesEnd = new IntValue(csvFileParser.Rows);
     252
    252253      UpdateClassValues();
    253254      suppressEvents = false;
     
    257258    protected override void OnProblemDataChanged(EventArgs e) {
    258259      base.OnProblemDataChanged(e);
    259       UpdateClassValues();
     260      if (!suppressEvents)
     261        UpdateClassValues();
    260262    }
    261263
     
    310312
    311313    private void UpdateMisclassifciationMatrixHeaders() {
    312       MisclassificationMatrix.RowNames = ClassNames.Select(name => "Estimated " + name).ToList() ;
     314      MisclassificationMatrix.RowNames = ClassNames.Select(name => "Estimated " + name).ToList();
    313315      MisclassificationMatrix.ColumnNames = ClassNames.Select(name => "Actual " + name).ToList();
    314316    }
Note: See TracChangeset for help on using the changeset viewer.