A set of data which is used in the model optimization process.
A byte array and a label.
A byte array and a label. It can contain anything.
Wrap a RDD as a DataSet.
A transformer chain two transformer together.
A transformer chain two transformer together. The output type of the first transformer should be same with the input type of the second transformer.
input type of the first transformer
output type of the first transformer, as well as the input type of the last transformer
output of the last transformer
Represent a distributed data.
Represent a distributed data. Use RDD to go through all data.
Just transform the input to output.
Represent an image
Represent a label
Wrap an array as a DataSet.
Manage some 'local' data, e.g.
Manage some 'local' data, e.g. data in files or memory. We use iterator to go through the data.
Represent a local file path of an image file
Represent a local file path of a hadoop sequence file
A batch of data feed into the model.
A batch of data feed into the model. The first size is batchsize
Sample, bundling input and target
Convert a sequence of Sample to a sequence of MiniBatch, optionally padding all the features (or labels) in the mini-batch to the same length
Represent a sentence
Transform a data stream of type A to type B.
Transform a data stream of type A to type B. It is usually used in data pre-process stage. Different transformers can compose a pipeline. For example, if there're transformer1 from A to B, transformer2 from B to C, and transformer3 from C to D, you can compose them into a bigger transformer from A to D by transformer1 -> transformer2 -> transformer 3.
The purpose of transformer is for code reuse. Many deep learning share many common data pre-process steps. User needn't write them every time, but can reuse others work.
Transformer can be used with RDD(rdd.mapPartition), iterator and DataSet.
Common used DataSet builder.
Convert a sequence of Sample to a sequence of MiniBatch, optionally padding all the features (or labels) in the mini-batch to the same length
A set of data which is used in the model optimization process. The dataset can be access in a random data sample sequence. In the training process, the data sequence is a looped endless sequence. While in the validation process, the data sequence is a limited length sequence. User can use the data() method to get the data sequence.
The sequence of the data is not fixed. It can be changed by the shuffle() method.
User can create a dataset from a RDD, an array and a folder, etc. The DataSet object provides many factory methods.
Data type
Represent a sequence of data