Changeset 7265
- Timestamp:
- 01/03/12 10:27:33 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblemData.cs
r7259 r7265 77 77 public virtual IEnumerable<int> TrainingIndizes { 78 78 get { 79 return Enumerable.Range(TrainingPartition.Start, TrainingPartition.End - TrainingPartition.Start)79 return Enumerable.Range(TrainingPartition.Start, Math.Max(0, TrainingPartition.End - TrainingPartition.Start)) 80 80 .Where(IsTrainingSample); 81 81 } … … 83 83 public virtual IEnumerable<int> TestIndizes { 84 84 get { 85 return Enumerable.Range(TestPartition.Start, TestPartition.End - TestPartition.Start)85 return Enumerable.Range(TestPartition.Start, Math.Max(0, TestPartition.End - TestPartition.Start)) 86 86 .Where(IsTestSample); 87 87 }
Note: See TracChangeset
for help on using the changeset viewer.