- Timestamp:
- 12/11/12 12:27:49 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3
- Files:
-
- 5 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 } -
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Clustering/CSV/ClusteringCSVInstanceProvider.cs
r8877 r9021 100 100 // turn of input variables that are constant in the training partition 101 101 var allowedInputVars = new List<string>(); 102 int trainingPartEnd = (csvFileParser.Rows * type.Training ) / 100;102 int trainingPartEnd = (csvFileParser.Rows * type.TrainingPercentage) / 100; 103 103 var trainingIndizes = Enumerable.Range(0, trainingPartEnd); 104 104 if (trainingIndizes.Count() >= 2) { -
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/DataAnalysisImportType.cs
r8598 r9021 23 23 public class DataAnalysisImportType { 24 24 public bool Shuffle { get; set; } 25 public int Training { get; set; }25 public int TrainingPercentage { get; set; } 26 26 } 27 27 } -
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/CSV/RegressionCSVInstanceProvider.cs
r8877 r9021 97 97 // turn of input variables that are constant in the training partition 98 98 var allowedInputVars = new List<string>(); 99 int trainingPartEnd = (csvFileParser.Rows * type.Training ) / 100;99 int trainingPartEnd = (csvFileParser.Rows * type.TrainingPercentage) / 100; 100 100 trainingPartEnd = trainingPartEnd > 0 ? trainingPartEnd : 1; 101 101 var trainingIndizes = Enumerable.Range(0, trainingPartEnd); -
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/TimeSeries/CSV/TimeSeriesPrognosisCSVInstanceProvider.cs
r8885 r9021 87 87 // turn of input variables that are constant in the training partition 88 88 var allowedInputVars = new List<string>(); 89 int trainingPartEnd = (csvFileParser.Rows * type.Training ) / 100;89 int trainingPartEnd = (csvFileParser.Rows * type.TrainingPercentage) / 100; 90 90 trainingPartEnd = trainingPartEnd > 0 ? trainingPartEnd : 1; 91 91 var trainingIndizes = Enumerable.Range(0, trainingPartEnd);
Note: See TracChangeset
for help on using the changeset viewer.