Dataset

abstract class Dataset

Just abstract Dataset.

Constructors

Dataset
Link copied to clipboard
fun Dataset()

Types

BatchIterator
Link copied to clipboard
inner class BatchIterator : Iterator<DataBatch?>
An iterator over a Dataset.

Functions

batchIterator
Link copied to clipboard
fun batchIterator(batchSize: Int): Dataset.BatchIterator
Returns BatchIterator with fixed batchSize.
getX
Link copied to clipboard
abstract fun getX(idx: Int): FloatArray
Returns row by index idx.
getY
Link copied to clipboard
abstract fun getY(idx: Int): Float
Returns label as Int by index idx.
shuffle
Link copied to clipboard
abstract fun shuffle(): Dataset
Shuffles the dataset.
split
Link copied to clipboard
abstract fun split(splitRatio: Double): Pair<Dataset, Dataset>
Splits datasets on two sub-datasets according splitRatio.
xSize
Link copied to clipboard
abstract fun xSize(): Int
Returns amount of data rows.

Inheritors

OnFlyImageDataset
Link copied to clipboard
OnHeapDataset
Link copied to clipboard