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 |
---|---|
Pair<gov.sandia.cognition.math.matrix.Matrix> |
generate() |
List<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
- IOException
public BillMatlabFileDataGenerator(File matfile, String mainMatrixName, File polls, int ndays, boolean filter) throws IOException
matfile
- mainMatrixName
- polls
- ndays
- filter
- IOException
public BillMatlabFileDataGenerator(File matfile, String mainMatrixName, File polls, int ndays, boolean filter, List<BillMatlabFileDataGenerator.Fold> folds) throws IOException
matfile
- mainMatrixName
- polls
- ndays
- filter
- folds
- IOException
public Map<Integer,String> getVocabulary()
public void setFold(int fold, BillMatlabFileDataGenerator.Mode mode)
fold
- mode
- public 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<Pair<gov.sandia.cognition.math.matrix.Matrix>> generateAll()
generate()
until there is nothing to consume