Changeset 9021 for trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Classification/CSV
- Timestamp:
- 12/11/12 12:27:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Classification/CSV/ClassifiactionCSVInstanceProvider.cs
r8885 r9021 91 91 92 92 protected override IClassificationProblemData ImportData(string path, ClassificationImportType type, TableFileParser csvFileParser) { 93 int trainingPartEnd = (csvFileParser.Rows * type.Training ) / 100;93 int trainingPartEnd = (csvFileParser.Rows * type.TrainingPercentage) / 100; 94 94 List<IList> values = csvFileParser.Values; 95 95 if (type.Shuffle) { … … 97 97 if (type.UniformlyDistributeClasses) { 98 98 values = Shuffle(values, csvFileParser.VariableNames.ToList().FindIndex(x => x.Equals(type.TargetVariable)), 99 type.Training , out trainingPartEnd);99 type.TrainingPercentage, out trainingPartEnd); 100 100 } 101 101 }
Note: See TracChangeset
for help on using the changeset viewer.