nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/dataset/api/iterator/fetcher/BaseDataFetcher.java
protected void initializeCurrFromList(List<DataSet> examples) {

        if (examples.isEmpty())
            log.warn("Warning: empty dataset from the fetcher");

        INDArray inputs = createInputMatrix(examples.size());
        INDArray labels = createOutputMatrix(examples.size());
        for (int i = 0; i < examples.size(); i++) {
            inputs.putRow(i, examples.get(i).getFeatureMatrix());
            labels.putRow(i, examples.get(i).getLabels());
        }
        curr = new DataSet(inputs, labels);

    }
protected void initializeCurrFromList(List<DataSet> examples) {

        if (examples.isEmpty())
            log.warn("Warning: empty dataset from the fetcher");

        INDArray inputs = createInputMatrix(examples.size());
        INDArray labels = createOutputMatrix(examples.size());
        for (int i = 0; i < examples.size(); i++) {
            inputs.putRow(i, examples.get(i).getFeatureMatrix());
            labels.putRow(i, examples.get(i).getLabels());
        }
        curr = new DataSet(inputs, labels);

    }
protected void initializeCurrFromList ( List < DataSet > examples ) { if ( examples . isEmpty ( ) ) log . warn ( "Warning: empty dataset from the fetcher" ) ; INDArray inputs = createInputMatrix ( examples . size ( ) ) ; INDArray labels = createOutputMatrix ( examples . size ( ) ) ; for ( int i = 0 ; i < examples . size ( ) ; i ++ ) { inputs . putRow ( i , examples . get ( i ) . getFeatureMatrix ( ) ) ; labels . putRow ( i , examples . get ( i ) . getLabels ( ) ) ; } curr = new DataSet ( inputs , labels ) ; }
Initializes this data transform fetcher from the passed in datasets

@param examples the examples to use
Initializes this data transform fetcher from the passed in datasets