- Timestamp:
- 11/08/12 16:43:08 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Classification
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Classification/CSV/ClassifiactionCSVInstanceProvider.cs
r8877 r8885 94 94 List<IList> values = csvFileParser.Values; 95 95 if (type.Shuffle) { 96 values = Shuffle(values, csvFileParser.VariableNames.ToList().FindIndex(x => x.Equals(type.TargetVariable)), 97 type.Training, out trainingPartEnd); 96 values = Shuffle(values); 97 if (type.UniformlyDistributeClasses) { 98 values = Shuffle(values, csvFileParser.VariableNames.ToList().FindIndex(x => x.Equals(type.TargetVariable)), 99 type.Training, out trainingPartEnd); 100 } 98 101 } 99 102 … … 147 150 trainingPartEnd = training.First().Count; 148 151 149 training = Shuffle(training);150 test = Shuffle(test);151 152 for (int i = 0; i < training.Count; i++) { 152 153 for (int j = 0; j < test[i].Count; j++) { -
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Classification/ClassificationImportType.cs
r8877 r8885 23 23 public class ClassificationImportType : DataAnalysisImportType { 24 24 public string TargetVariable { get; set; } 25 public bool UniformlyDistributeClasses { get; set; } 25 26 } 26 27 }
Note: See TracChangeset
for help on using the changeset viewer.