Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/24/10 11:09:46 (14 years ago)
Author:
mkommend
Message:

Reorganized unit tests for more plugins into own project (ticket #1202).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/SymbolicRegressionProblemBase.cs

    r4468 r4486  
    129129    public IntValue TrainingSamplesEnd {
    130130      get {
    131         int endIndex = (int)(DataAnalysisProblemData.TrainingIndizes.Count() * (1.0 - DataAnalysisProblemData.ValidationPercentage.Value));
     131        int endIndex = (int)(DataAnalysisProblemData.TrainingIndizes.Count() * (1.0 - DataAnalysisProblemData.ValidationPercentage.Value) - 1);
     132        if (endIndex < 0) endIndex = 0;
    132133        return new IntValue(DataAnalysisProblemData.TrainingIndizes.ElementAt(endIndex));
    133134      }
Note: See TracChangeset for help on using the changeset viewer.