public class BillMatlabFileDataGenerator extends Object implements MatrixDataGenerator<gov.sandia.cognition.math.matrix.Matrix>
| Modifier and Type | Class and Description |
|---|---|
static class |
BillMatlabFileDataGenerator.Fold |
static class |
BillMatlabFileDataGenerator.Mode
The modes
|
| Constructor and Description |
|---|
BillMatlabFileDataGenerator(File matfile,
int ndays,
boolean filter) |
BillMatlabFileDataGenerator(File matfile,
String mainMatrixName,
File polls,
int ndays,
boolean filter) |
BillMatlabFileDataGenerator(File matfile,
String mainMatrixName,
File polls,
int ndays,
boolean filter,
List<BillMatlabFileDataGenerator.Fold> folds) |
| Modifier and Type | Method and Description |
|---|---|
org.openimaj.util.pair.Pair<gov.sandia.cognition.math.matrix.Matrix> |
generate() |
List<org.openimaj.util.pair.Pair<gov.sandia.cognition.math.matrix.Matrix>> |
generateAll() |
String[] |
getTasks() |
Map<Integer,String> |
getVocabulary() |
int |
nFolds() |
void |
setFold(int fold,
BillMatlabFileDataGenerator.Mode mode) |
public BillMatlabFileDataGenerator(File matfile, int ndays, boolean filter) throws IOException
matfile - ndays - filter - IOExceptionpublic BillMatlabFileDataGenerator(File matfile, String mainMatrixName, File polls, int ndays, boolean filter) throws IOException
matfile - mainMatrixName - polls - ndays - filter - IOExceptionpublic BillMatlabFileDataGenerator(File matfile, String mainMatrixName, File polls, int ndays, boolean filter, List<BillMatlabFileDataGenerator.Fold> folds) throws IOException
matfile - mainMatrixName - polls - ndays - filter - folds - IOExceptionpublic Map<Integer,String> getVocabulary()
public void setFold(int fold, BillMatlabFileDataGenerator.Mode mode)
fold - mode - public org.openimaj.util.pair.Pair<gov.sandia.cognition.math.matrix.Matrix> generate()
generate in interface DataGenerator<gov.sandia.cognition.math.matrix.Matrix,gov.sandia.cognition.math.matrix.Matrix>generate in interface MatrixDataGenerator<gov.sandia.cognition.math.matrix.Matrix>public int nFolds()
public List<org.openimaj.util.pair.Pair<gov.sandia.cognition.math.matrix.Matrix>> generateAll()
generate() until there is nothing to consume