Uses of Class
org.nd4j.linalg.dataset.DataSet
-
-
Uses of DataSet in org.nd4j.autodiff.samediff
Methods in org.nd4j.autodiff.samediff with parameters of type DataSet Modifier and Type Method Description HistorySameDiff. fit(@NonNull DataSet dataSet, @NonNull Listener... listeners)Fit the SameDiff instance based on a single DataSet (i.e., a single minibatch for one iteration).
This method can only be used for singe input, single output SameDiff instances as DataSet only supports a single input and a single output.
Note that aTrainingConfigmust be set viaSameDiff.setTrainingConfig(TrainingConfig)before training can be performed.Map<String,INDArray>SameDiff. output(@NonNull DataSet dataSet, @NonNull String... outputs)Do a single batch inference on a network with a single input.
For example, if the variable to infer was called "softmax" you would use: -
Uses of DataSet in org.nd4j.linalg.dataset
Fields in org.nd4j.linalg.dataset declared as DataSet Modifier and Type Field Description protected DataSetAsyncDataSetIterator. nextElementprotected DataSetAsyncDataSetIterator. terminatorFields in org.nd4j.linalg.dataset with type parameters of type DataSet Modifier and Type Field Description protected BlockingQueue<DataSet>AsyncDataSetIterator. bufferMethods in org.nd4j.linalg.dataset that return DataSet Modifier and Type Method Description DataSetDataSet. copy()Clone the datasetstatic DataSetDataSet. empty()Returns a single dataset (all fields are null)DataSetDataSet. filterBy(int[] labels)Strips the data transform of all but the passed in labelsDataSetDataSet. get(int i)Gets a copy of example iDataSetDataSet. get(int[] i)Gets a copy of example iDataSetSplitTestAndTrain. getTest()DataSetSplitTestAndTrain. getTrain()static DataSetDataSet. merge(List<? extends DataSet> data)Merge the list of datasets in to one list.DataSetAsyncDataSetIterator. next()Returns the next element in the iteration.DataSetAsyncDataSetIterator. next(int num)Like the standard next method but allows a customizable number of examples returnedDataSetExistingMiniBatchDataSetIterator. next()DataSetExistingMiniBatchDataSetIterator. next(int num)DataSetMiniBatchFileDataSetIterator. next()DataSetMiniBatchFileDataSetIterator. next(int num)DataSetViewIterator. next()DataSetViewIterator. next(int num)DataSetDataSet. reshape(int rows, int cols)Reshapes the input in to the given rows and columnsDataSetDataSet. sample(int numSamples)Sample without replacement and a random rngDataSetDataSet. sample(int numSamples, boolean withReplacement)Sample a dataset numSamples timesDataSetDataSet. sample(int numSamples, Random rng)Sample without replacementDataSetDataSet. sample(int numSamples, Random rng, boolean withReplacement)Sample a datasetMethods in org.nd4j.linalg.dataset that return types with arguments of type DataSet Modifier and Type Method 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 examplesList<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.Methods in org.nd4j.linalg.dataset with parameters of type DataSet Modifier and Type Method Description voidDataSet. addRow(DataSet d, int i)voidSplitTestAndTrain. setTest(DataSet test)voidSplitTestAndTrain. setTrain(DataSet train)Constructors in org.nd4j.linalg.dataset with parameters of type DataSet Constructor Description AsyncPrefetchThread(@NonNull BlockingQueue<DataSet> queue, @NonNull DataSetIterator iterator, @NonNull DataSet terminator, MemoryWorkspace workspace, int deviceId)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)Constructor parameters in org.nd4j.linalg.dataset with type arguments of type DataSet Constructor Description AsyncDataSetIterator(DataSetIterator iterator, int queueSize, BlockingQueue<DataSet> queue)Create an Async iterator with the default queue size of 8AsyncDataSetIterator(DataSetIterator iterator, int queueSize, BlockingQueue<DataSet> queue, boolean useWorkspace)AsyncDataSetIterator(DataSetIterator iterator, int queueSize, BlockingQueue<DataSet> queue, boolean useWorkspace, DataSetCallback callback)AsyncDataSetIterator(DataSetIterator iterator, int queueSize, BlockingQueue<DataSet> queue, boolean useWorkspace, DataSetCallback callback, Integer deviceId)AsyncPrefetchThread(@NonNull BlockingQueue<DataSet> queue, @NonNull DataSetIterator iterator, @NonNull DataSet terminator, MemoryWorkspace workspace, int deviceId) -
Uses of DataSet in org.nd4j.linalg.dataset.adapter
Methods in org.nd4j.linalg.dataset.adapter that return DataSet Modifier and Type Method Description DataSetSingletonDataSetIterator. next()DataSetSingletonDataSetIterator. next(int num)Constructors in org.nd4j.linalg.dataset.adapter with parameters of type DataSet Constructor Description SingletonDataSetIterator(DataSet multiDataSet) -
Uses of DataSet in org.nd4j.linalg.dataset.api
Methods in org.nd4j.linalg.dataset.api that return DataSet Modifier and Type Method Description DataSetDataSet. copy()Create a copy of the DataSetDataSetDataSet. filterBy(int[] labels)DataSetDataSet. get(int i)DataSetDataSet. get(int[] i)DataSetDataSet. reshape(int rows, int cols)DataSetDataSet. sample(int numSamples)DataSetDataSet. sample(int numSamples, boolean withReplacement)DataSetDataSet. sample(int numSamples, Random rng)DataSetDataSet. sample(int numSamples, Random rng, boolean withReplacement)Methods in org.nd4j.linalg.dataset.api that return types with arguments of type DataSet Modifier and Type Method Description List<DataSet>DataSet. asList()Extract each example in the DataSet into its own DataSet object, and return all of them as a listList<DataSet>DataSet. batchBy(int num)List<DataSet>DataSet. batchByNumLabels()List<DataSet>DataSet. dataSetBatches(int num)Deprecated.preferDataSet.batchBy(int)Iterator<DataSet>DataSet. iterator()List<DataSet>DataSet. sortAndBatchByNumLabels()Methods in org.nd4j.linalg.dataset.api with parameters of type DataSet Modifier and Type Method Description voidDataSet. addRow(DataSet d, int i) -
Uses of DataSet in org.nd4j.linalg.dataset.api.iterator
Fields in org.nd4j.linalg.dataset.api.iterator declared as DataSet Modifier and Type Field Description protected DataSetKFoldIterator. allDataprotected DataSetKFoldIterator. testprotected DataSetKFoldIterator. trainMethods in org.nd4j.linalg.dataset.api.iterator that return DataSet Modifier and Type Method Description DataSetBaseDatasetIterator. next()DataSetBaseDatasetIterator. next(int num)DataSetCachingDataSetIterator. next()DataSetCachingDataSetIterator. next(int num)DataSetDataSetIterator. next(int num)Like the standard next method but allows a customizable number of examples returnedDataSetKFoldIterator. next()DataSetKFoldIterator. next(int num)DataSetMultipleEpochsIterator. next()Deprecated.Returns the next element in the iteration.DataSetMultipleEpochsIterator. next(int num)Deprecated.Like the standard next method but allows a customizable number of examples returnedDataSetSamplingDataSetIterator. next()DataSetSamplingDataSetIterator. next(int num)DataSetTestDataSetIterator. next()DataSetTestDataSetIterator. next(int num)DataSetParallelDataSetIterator. nextFor()Returns next DataSet for attached consumerDataSetParallelDataSetIterator. nextFor(int consumer)Returns next DataSet for given consumerDataSetKFoldIterator. testFold()Methods in org.nd4j.linalg.dataset.api.iterator with parameters of type DataSet Modifier and Type Method Description voidStandardScaler. fit(DataSet dataSet)Deprecated.voidStandardScaler. transform(DataSet dataSet)Deprecated.Transform the dataConstructors in org.nd4j.linalg.dataset.api.iterator with parameters of type DataSet Constructor Description KFoldIterator(int k, DataSet allData)Create an iterator given the dataset with given k train-test splits N number of samples are split into k batches.KFoldIterator(DataSet allData)Create a k-fold cross-validation iterator given the dataset and k=10 train-test splits.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 5TestDataSetIterator(DataSet dataset, int batch)Constructor parameters in org.nd4j.linalg.dataset.api.iterator with type arguments of type DataSet Constructor Description TestDataSetIterator(List<DataSet> coll, int batch) -
Uses of DataSet in org.nd4j.linalg.dataset.api.iterator.cache
Methods in org.nd4j.linalg.dataset.api.iterator.cache that return DataSet Modifier and Type Method Description DataSetDataSetCache. get(String key)DataSetInFileAndMemoryDataSetCache. get(String key)DataSetInFileDataSetCache. get(String key)DataSetInMemoryDataSetCache. get(String key)Methods in org.nd4j.linalg.dataset.api.iterator.cache with parameters of type DataSet Modifier and Type Method Description voidDataSetCache. put(String key, DataSet dataSet)voidInFileAndMemoryDataSetCache. put(String key, DataSet dataSet)voidInFileDataSetCache. put(String key, DataSet dataSet)voidInMemoryDataSetCache. put(String key, DataSet dataSet) -
Uses of DataSet in org.nd4j.linalg.dataset.api.iterator.fetcher
Fields in org.nd4j.linalg.dataset.api.iterator.fetcher declared as DataSet Modifier and Type Field Description protected DataSetBaseDataFetcher. currMethods in org.nd4j.linalg.dataset.api.iterator.fetcher that return DataSet Modifier and Type Method Description DataSetBaseDataFetcher. next()DataSetDataSetFetcher. next()Returns the next data applyTransformToDestinationMethod parameters in org.nd4j.linalg.dataset.api.iterator.fetcher with type arguments of type DataSet Modifier and Type Method Description protected voidBaseDataFetcher. initializeCurrFromList(List<DataSet> examples)Initializes this data transform fetcher from the passed in datasets -
Uses of DataSet in org.nd4j.linalg.heartbeat.utils
Methods in org.nd4j.linalg.heartbeat.utils with parameters of type DataSet Modifier and Type Method Description static TaskTaskUtils. buildTask(DataSet dataSet) -
Uses of DataSet in org.nd4j.linalg.util
Methods in org.nd4j.linalg.util with parameters of type DataSet Modifier and Type Method Description voidDataSetUtils. showDataSet(int mtLv, String itemCode, DataSet ds, int in_Digits, int ot_Digits, int r_End_I, int c_End_I)showDataSet
public void showDataSet( int mtLv, String itemCode, DataSet ds,
int in_Digits, int ot_Digits, int r_End_I, int c_End_I )
Shows content of DataSet.
-