Module es.upm.fi.cig.multictbnc
Class MultipleCSVReader
java.lang.Object
es.upm.fi.cig.multictbnc.data.reader.AbstractCSVReader
es.upm.fi.cig.multictbnc.data.reader.MultipleCSVReader
- All Implemented Interfaces:
DatasetReader
Provides the logic to read separate CSV files. It is possible to find time series data where the sequences are stored
in separate CSV files.
-
Constructor Summary
ConstructorDescriptionMultipleCSVReader
(String datasetFolder) Constructs aMultipleCSVReader
that extracts all the CSV files from the specified folder. -
Method Summary
Modifier and TypeMethodDescriptionReturns a dataset.readDataset
(int numFiles) Creates a dataset using only the specified number of files.Methods inherited from class es.upm.fi.cig.multictbnc.data.reader.AbstractCSVReader
extractVariableNames, getNameClassVariables, getNameFeatureVariables, getNameTimeVariable, getNameVariables, isDatasetOutdated, readCSV, removeZeroVarianceVariables, setDatasetAsOutdated, setTimeAndClassVariables, setTimeAndFeatureVariables, setTimeVariable, setVariables
-
Constructor Details
-
MultipleCSVReader
Constructs aMultipleCSVReader
that extracts all the CSV files from the specified folder.- Parameters:
datasetFolder
- folder path where the CSV files are stored- Throws:
FileNotFoundException
- if the CSV files were not foundUnreadDatasetException
- if the provided dataset could not be read
-
-
Method Details
-
readDataset
Description copied from interface:DatasetReader
Returns a dataset.- Returns:
- a
Dataset
- Throws:
UnreadDatasetException
- if the provided dataset could not be read
-
readDataset
Description copied from interface:DatasetReader
Creates a dataset using only the specified number of files. This method allows reading datasets using batches.- Specified by:
readDataset
in interfaceDatasetReader
- Overrides:
readDataset
in classAbstractCSVReader
- Parameters:
numFiles
- number of files- Returns:
- a
Dataset
- Throws:
UnreadDatasetException
- thrown if the dataset could not be read
-