p

lamp

data

package data

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. trait BatchStream[+I] extends AnyRef
  2. case class NonEmptyBatch[I](batch: I) extends StreamControl[I] with Product with Serializable
  3. case class Peek(label: String) extends Module with Product with Serializable
  4. case class SWALoopState(model: Seq[STen], optimizer: Seq[STen], epoch: Int, lastValidationLoss: Option[Double], minValidationLoss: Option[Double], numberOfAveragedModels: Int, averagedModels: Option[Seq[Tensor]], learningCurve: List[(Int, Double, Option[Double])]) extends State with Product with Serializable
  5. case class SimpleLoopState(model: Seq[STen], optimizer: Seq[STen], epoch: Int, lastValidationLoss: Option[Double], minValidationLoss: Option[Double], minValidationLossModel: Option[(Int, Seq[Tensor])], learningCurve: List[(Int, Double, Option[Double])]) extends State with Product with Serializable
  6. case class SimpleThenSWALoopState(simple: Option[SimpleLoopState], swa: Option[SWALoopState]) extends State with Product with Serializable
  7. sealed trait State extends AnyRef
  8. sealed trait StreamControl[+I] extends AnyRef
  9. trait TrainingCallback extends AnyRef
  10. trait ValidationCallback extends AnyRef

Value Members

  1. object BatchStream
  2. object BufferedImageHelper
  3. object DataParallel
  4. case object EmptyBatch extends StreamControl[Nothing] with Product with Serializable
  5. case object EndStream extends StreamControl[Nothing] with Product with Serializable
  6. object GraphBatchStream
  7. object IOLoops

    Contains a training loops and helpers around it

    Contains a training loops and helpers around it

    The two training loops implemented here are:

  8. object Reader
  9. object SWA
  10. object StateIO
  11. object StreamControl
  12. object Text
  13. object TrainingCallback
  14. object ValidationCallback
  15. object Writer

    Binary serialization for Tensor with primitive Double, Float, Long

    Binary serialization for Tensor with primitive Double, Float, Long

    The layout of binary format is as follows: - The first 6 bytes are "LAMP" - The next unsigned byte is the major version - The next unsigned byte is the minor version - The next 4 bytes form a little endian integer as HEADER_LENGTH - The next HEADER_LENGTH bytes form an UTF-8 string as the header. - The header is a valid JSON object with the following fields:

    • v: numeric positive integer is the version of the header structure
    • shape: numeric array
    • datatype : string, either "double", "long", "int", "float", "byte" - The header is padded with spaces (0x20) such that HEADER_LENGTH+12 is divisible by 16. The count of spaces are included in HEADER_LENGTH. - The next width * shape.reduce(_ * _) bytes form a little endian primitive array.

Ungrouped