Changeset 17414 for branches/3040_VectorBasedGP/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/PennML
- Timestamp:
- 01/31/20 12:42:47 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3040_VectorBasedGP/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/PennML/PennMLRegressionInstanceProvider.cs
r17180 r17414 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Globalization;25 24 using System.IO; 26 25 using System.IO.Compression; … … 57 56 using (var instancesZipFile = new ZipArchive(GetType().Assembly.GetManifestResourceStream(instanceArchiveName), ZipArchiveMode.Read)) { 58 57 foreach (var entry in instancesZipFile.Entries) { 59 NumberFormatInfo numberFormat; 60 DateTimeFormatInfo dateFormat; 61 char separator; 62 using (var stream = entry.Open()) { 63 // the method below disposes the stream 64 TableFileParser.DetermineFileFormat(stream, out numberFormat, out dateFormat, out separator); 65 } 58 var formatOptions = GetFormatOptions(entry); 66 59 67 60 using (var stream = entry.Open()) { … … 70 63 71 64 // by convention each dataset from the PennML collection reserves the last column for the target 72 var variableNames = header.Split( separator);65 var variableNames = header.Split(formatOptions.ColumnSeparator); 73 66 var allowedInputVariables = variableNames.Take(variableNames.Length - 1); 74 67 var target = variableNames.Last();
Note: See TracChangeset
for help on using the changeset viewer.