Changeset 5279
- Timestamp:
- 01/11/11 17:03:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Classification/3.3/Symbolic/SymbolicClassificationProblem.cs
r5273 r5279 123 123 get { return new DoubleValue(10.0); } 124 124 } 125 public IntValue TrainingSamplesStart { get { return new IntValue(ClassificationProblemData.Training SamplesStart.Value); } }125 public IntValue TrainingSamplesStart { get { return new IntValue(ClassificationProblemData.TrainingIndizes.First()); } } 126 126 public IntValue TrainingSamplesEnd { 127 get { return new IntValue((ClassificationProblemData.TrainingSamplesStart.Value + ClassificationProblemData.TrainingSamplesEnd.Value) / 2); } 127 get { 128 int endIndex = (int)(ClassificationProblemData.TrainingIndizes.Count() * (1.0 - ClassificationProblemData.ValidationPercentage.Value) - 1); 129 if (endIndex < 0) endIndex = 0; 130 return new IntValue(ClassificationProblemData.TrainingIndizes.ElementAt(endIndex)); 131 } 128 132 } 129 133 public IntValue ValidationSamplesStart { get { return TrainingSamplesEnd; } } 130 public IntValue ValidationSamplesEnd { get { return new IntValue(ClassificationProblemData.Training SamplesEnd.Value); } }134 public IntValue ValidationSamplesEnd { get { return new IntValue(ClassificationProblemData.TrainingIndizes.Last() + 1); } } 131 135 public IntValue TestSamplesStart { get { return ClassificationProblemData.TestSamplesStart; } } 132 136 public IntValue TestSamplesEnd { get { return ClassificationProblemData.TestSamplesEnd; } }
Note: See TracChangeset
for help on using the changeset viewer.