Modifier and Type | Method and Description |
---|---|
DataSet |
DataSet.copy()
Clone the dataset
|
static DataSet |
DataSet.empty()
Returns a single dataset (all fields are null)
|
DataSet |
DataSet.filterBy(int[] labels)
Strips the data transform of all but the passed in labels
|
DataSet |
DataSet.get(int i)
Gets a copy of example i
|
DataSet |
DataSet.get(int[] i)
Gets a copy of example i
|
DataSet |
SplitTestAndTrain.getTest() |
DataSet |
SplitTestAndTrain.getTrain() |
static DataSet |
DataSet.merge(List<DataSet> data)
Merge the list of datasets in to one list.
|
static DataSet |
DataSet.merge(List<DataSet> data,
boolean clone)
Deprecated.
Use
merge(List) |
DataSet |
MiniBatchFileDataSetIterator.next() |
DataSet |
ExistingMiniBatchDataSetIterator.next() |
DataSet |
ViewIterator.next() |
DataSet |
MiniBatchFileDataSetIterator.next(int num) |
DataSet |
ExistingMiniBatchDataSetIterator.next(int num) |
DataSet |
ViewIterator.next(int num) |
DataSet |
DataSet.reshape(int rows,
int cols)
Reshapes the input in to the given rows and columns
|
DataSet |
DataSet.sample(int numSamples)
Sample without replacement and a random rng
|
DataSet |
DataSet.sample(int numSamples,
boolean withReplacement)
Sample a dataset numSamples times
|
DataSet |
DataSet.sample(int numSamples,
Random rng)
Sample without replacement
|
DataSet |
DataSet.sample(int numSamples,
Random rng,
boolean withReplacement)
Sample a dataset
|
Modifier and Type | Method and Description |
---|---|
List<DataSet> |
DataSet.asList() |
List<DataSet> |
DataSet.batchBy(int num)
Partitions a dataset in to mini batches where
each dataset in each list is of the specified number of examples
|
List<DataSet> |
DataSet.batchByNumLabels() |
List<DataSet> |
DataSet.dataSetBatches(int num)
Partitions the data transform by the specified number.
|
Iterator<DataSet> |
DataSet.iterator() |
List<DataSet> |
DataSet.sortAndBatchByNumLabels()
Sorts the dataset by label:
Splits the data transform such that examples are sorted by their labels.
|
Modifier and Type | Method and Description |
---|---|
void |
DataSet.addRow(DataSet d,
int i) |
void |
SplitTestAndTrain.setTest(DataSet test) |
void |
SplitTestAndTrain.setTrain(DataSet train) |
Modifier and Type | Method and Description |
---|---|
static DataSet |
DataSet.merge(List<DataSet> data)
Merge the list of datasets in to one list.
|
static DataSet |
DataSet.merge(List<DataSet> data,
boolean clone)
Deprecated.
Use
merge(List) |
Constructor and Description |
---|
MiniBatchFileDataSetIterator(DataSet baseData,
int batchSize) |
MiniBatchFileDataSetIterator(DataSet baseData,
int batchSize,
boolean delete) |
MiniBatchFileDataSetIterator(DataSet baseData,
int batchSize,
boolean delete,
File rootDir) |
SplitTestAndTrain(DataSet train,
DataSet test) |
ViewIterator(DataSet data,
int batchSize) |
Modifier and Type | Method and Description |
---|---|
DataSet |
DataSet.copy()
Create a copy of the DataSet
|
DataSet |
DataSet.filterBy(int[] labels) |
DataSet |
DataSet.get(int i) |
DataSet |
DataSet.get(int[] i) |
DataSet |
DataSet.reshape(int rows,
int cols) |
DataSet |
DataSet.sample(int numSamples) |
DataSet |
DataSet.sample(int numSamples,
boolean withReplacement) |
DataSet |
DataSet.sample(int numSamples,
Random rng) |
DataSet |
DataSet.sample(int numSamples,
Random rng,
boolean withReplacement) |
Modifier and Type | Method and Description |
---|---|
List<DataSet> |
DataSet.asList()
Extract each example in the DataSet into its own DataSet object, and return all of them as a list
|
List<DataSet> |
DataSet.batchBy(int num) |
List<DataSet> |
DataSet.batchByNumLabels() |
List<DataSet> |
DataSet.dataSetBatches(int num)
Deprecated.
prefer
DataSet.batchBy(int) |
Iterator<DataSet> |
DataSet.iterator() |
List<DataSet> |
DataSet.sortAndBatchByNumLabels() |
Modifier and Type | Method and Description |
---|---|
void |
DataSet.addRow(DataSet d,
int i) |
Modifier and Type | Method and Description |
---|---|
DataSet |
TestDataSetIterator.next() |
DataSet |
BaseDatasetIterator.next() |
DataSet |
CachingDataSetIterator.next() |
DataSet |
KFoldIterator.next() |
DataSet |
MultipleEpochsIterator.next()
Deprecated.
Returns the next element in the iteration.
|
DataSet |
SamplingDataSetIterator.next() |
DataSet |
TestDataSetIterator.next(int num) |
DataSet |
BaseDatasetIterator.next(int num) |
DataSet |
CachingDataSetIterator.next(int num) |
DataSet |
KFoldIterator.next(int num) |
DataSet |
DataSetIterator.next(int num)
Like the standard next method but allows a
customizable number of examples returned
|
DataSet |
MultipleEpochsIterator.next(int num)
Deprecated.
Like the standard next method but allows a
customizable number of examples returned
|
DataSet |
SamplingDataSetIterator.next(int num) |
DataSet |
KFoldIterator.testFold() |
Modifier and Type | Method and Description |
---|---|
void |
StandardScaler.fit(DataSet dataSet)
Deprecated.
|
void |
StandardScaler.transform(DataSet dataSet)
Deprecated.
Transform the data
|
Constructor and Description |
---|
KFoldIterator(DataSet singleFold) |
KFoldIterator(int k,
DataSet singleFold)
Create an iterator given the dataset and a value of k (optional, defaults to 10)
If number of samples in the dataset is not a multiple of k, the last fold will have less samples with the rest having the same number of samples.
|
SamplingDataSetIterator(DataSet sampleFrom,
int batchSize,
int totalNumberSamples) |
SamplingDataSetIterator(DataSet sampleFrom,
int batchSize,
int totalNumberSamples,
boolean replace) |
TestDataSetIterator(DataSet dataset)
This makes an iterator from the given dataset and batchsize
ONLY for use in tests in nd4j
Initializes with a default batch of 5
|
TestDataSetIterator(DataSet dataset,
int batch) |
Modifier and Type | Method and Description |
---|---|
DataSet |
InFileAndMemoryDataSetCache.get(String key) |
DataSet |
DataSetCache.get(String key) |
DataSet |
InMemoryDataSetCache.get(String key) |
DataSet |
InFileDataSetCache.get(String key) |
Modifier and Type | Method and Description |
---|---|
void |
InFileAndMemoryDataSetCache.put(String key,
DataSet dataSet) |
void |
DataSetCache.put(String key,
DataSet dataSet) |
void |
InMemoryDataSetCache.put(String key,
DataSet dataSet) |
void |
InFileDataSetCache.put(String key,
DataSet dataSet) |
Modifier and Type | Field and Description |
---|---|
protected DataSet |
BaseDataFetcher.curr |
Modifier and Type | Method and Description |
---|---|
DataSet |
DataSetFetcher.next()
Returns the next data applyTransformToDestination
|
DataSet |
BaseDataFetcher.next() |
Modifier and Type | Method and Description |
---|---|
protected void |
BaseDataFetcher.initializeCurrFromList(List<DataSet> examples)
Initializes this data transform fetcher from the passed in datasets
|
Modifier and Type | Method and Description |
---|---|
static Task |
TaskUtils.buildTask(DataSet dataSet) |
Copyright © 2016. All Rights Reserved.