BatchStream

lamp.data.BatchStream$
See theBatchStream companion trait
object BatchStream

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object StagedLoader

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def fromFullBatch(features: STen, targets: STen, device: Device): BatchStream[(Variable, STen), Boolean, Unit]
def fromFunction[A, C](numBatches: Int, makeNonEmptyBatch: Device => Resource[IO, StreamControl[(A, STen)]]): BatchStream[(A, STen), Int, Unit]
def fromFunctionWithBuffers[A, C](numBatches: Int, allocateBuffers1: Device => Resource[IO, C])(makeNonEmptyBatch: (C, Device) => Resource[IO, StreamControl[A]]): BatchStream[A, Int, C]
def fromIndices[A, C](indices: Array[Array[Int]])(makeNonEmptyBatch: (Array[Int], Device) => Resource[IO, StreamControl[(A, STen)]]): BatchStream[(A, STen), Int, Unit]
def fromIndicesWithBuffers[A, C](indices: Array[Array[Int]], allocateBuffers1: Device => Resource[IO, C])(makeNonEmptyBatch: (Array[Int], C, Device) => Resource[IO, StreamControl[A]]): BatchStream[A, Int, C]
def fromVector[A](resources: Vector[Resource[IO, StreamControl[A]]]): BatchStream[A, Int, Unit]
def minibatchesFromFull(minibatchSize: Int, dropLast: Boolean, features: STen, target: STen, rng: Random): BatchStream[(Variable, STen), Int, BufferPair]
def single[A](resource: Resource[IO, StreamControl[A]]): BatchStream[A, Boolean, Unit]
def stagedFromIndices[A, B, C](indices: Array[Array[Int]], bucketSize: Int, allocateBuffers0: Device => Resource[IO, C])(loadInstancesToStaging: Array[Int] => Resource[IO, B], makeNonEmptyBatch: (B, Array[Int], C, Device) => Resource[IO, StreamControl[A]]): BatchStream[A, State[A, B], C]