Changeset 5759 for branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/CrossValidation.cs
- Timestamp:
- 03/19/11 02:22:45 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/CrossValidation.cs
r5659 r5759 271 271 clonedAlgorithm.Name = algorithm.Name + " Fold " + i; 272 272 IDataAnalysisProblem problem = clonedAlgorithm.Problem as IDataAnalysisProblem; 273 problem.ProblemData.TestPartition End.Value= (i + 1) == Folds.Value ? SamplesEnd.Value : (i + 1) * testSamplesCount + SamplesStart.Value;274 problem.ProblemData.TestPartition Start.Value= (i * testSamplesCount) + SamplesStart.Value;273 problem.ProblemData.TestPartition.End = (i + 1) == Folds.Value ? SamplesEnd.Value : (i + 1) * testSamplesCount + SamplesStart.Value; 274 problem.ProblemData.TestPartition.Start = (i * testSamplesCount) + SamplesStart.Value; 275 275 clonedAlgorithms.Add(clonedAlgorithm); 276 276 } … … 408 408 } 409 409 private void SamplesStart_ValueChanged(object sender, EventArgs e) { 410 if (Problem != null) Problem.ProblemData.TrainingPartition Start.Value= SamplesStart.Value;410 if (Problem != null) Problem.ProblemData.TrainingPartition.Start = SamplesStart.Value; 411 411 } 412 412 private void SamplesEnd_ValueChanged(object sender, EventArgs e) { 413 if (Problem != null) Problem.ProblemData.TrainingPartition End.Value= SamplesEnd.Value;413 if (Problem != null) Problem.ProblemData.TrainingPartition.End = SamplesEnd.Value; 414 414 } 415 415
Note: See TracChangeset
for help on using the changeset viewer.