public abstract class BaseDataFetcher extends Object implements DataSetFetcher
Modifier and Type | Field and Description |
---|---|
protected DataSet |
curr |
protected int |
cursor |
protected int |
inputColumns |
protected static org.slf4j.Logger |
log |
protected int |
numOutcomes |
protected int |
totalExamples |
Constructor and Description |
---|
BaseDataFetcher() |
Modifier and Type | Method and Description |
---|---|
protected org.jblas.DoubleMatrix |
createInputMatrix(int numRows) |
protected org.jblas.DoubleMatrix |
createOutputMatrix(int numRows) |
protected org.jblas.DoubleMatrix |
createOutputVector(int outcomeLabel) |
int |
cursor() |
boolean |
hasMore() |
protected void |
initializeCurrFromList(List<Pair<org.jblas.DoubleMatrix,org.jblas.DoubleMatrix>> examples) |
int |
inputColumns() |
DataSet |
next() |
void |
reset() |
int |
totalExamples() |
int |
totalOutcomes() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fetch
protected int cursor
protected int numOutcomes
protected int inputColumns
protected DataSet curr
protected int totalExamples
protected static org.slf4j.Logger log
protected org.jblas.DoubleMatrix createInputMatrix(int numRows)
protected org.jblas.DoubleMatrix createOutputVector(int outcomeLabel)
protected org.jblas.DoubleMatrix createOutputMatrix(int numRows)
protected void initializeCurrFromList(List<Pair<org.jblas.DoubleMatrix,org.jblas.DoubleMatrix>> examples)
public boolean hasMore()
hasMore
in interface DataSetFetcher
public DataSet next()
next
in interface DataSetFetcher
public int totalOutcomes()
totalOutcomes
in interface DataSetFetcher
public int inputColumns()
inputColumns
in interface DataSetFetcher
public int totalExamples()
totalExamples
in interface DataSetFetcher
public void reset()
reset
in interface DataSetFetcher
public int cursor()
cursor
in interface DataSetFetcher
Copyright © 2014. All Rights Reserved.