ml.combust.bundle.dsl

Value

object Value extends Serializable

Provides a set of helper methods for easily creating ml.combust.bundle.dsl.Value objects.

Easily create ml.combust.bundle.dsl.Value objects of any type using the helper methods provided here. The helper methods will wrap a Scala value for later serializing into Bundle.ML.

Also provides several helper methods for converting from Bundle.ML protobuf objects back into wrapped Scala objects.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Value
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def basicType(bt: BasicType): Value

    Create a data type value.

    Create a data type value.

    bt

    data type to store

    returns

    value with data type

  8. def basicTypeList(value: Seq[BasicType]): Value

    Create a list of data types.

    Create a list of data types.

    value

    data types

    returns

    value with data types

  9. def boolean(value: Boolean): Value

    Create a boolean value.

    Create a boolean value.

    value

    value to wrap

    returns

    wrapped value

  10. def booleanList(value: Seq[Boolean]): Value

    Create a list of booleans value.

    Create a list of booleans value.

    value

    Scala boolean list

    returns

    wrapped value

  11. def byte(value: Byte): Value

    Create an byte value.

    Create an byte value.

    value

    value to wrap

    returns

    wrapped value

  12. def byteList(value: Seq[Byte]): Value

    Create a list of byte value.

    Create a list of byte value.

    value

    Scala byte list

    returns

    wrapped value

  13. def byteString(value: ByteString): Value

    Create a byte string value.

    Create a byte string value.

    value

    value to wrap

    returns

    wrapped value

  14. def byteStringList(value: Seq[ByteString]): Value

    Create a list of byte string.

    Create a list of byte string.

    value

    byte strings

    returns

    value with byte strings

  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def dataShape(ds: DataShape): Value

    Create a data shape value.

    Create a data shape value.

    ds

    data shape to store

    returns

    value with data shape

  17. def dataShapeList(value: Seq[DataShape]): Value

    Create a list of data shapes.

    Create a list of data shapes.

    value

    data shapes

    returns

    value with data shapes

  18. def double(value: Double): Value

    Create a double value.

    Create a double value.

    value

    value to wrap

    returns

    wrapped value

  19. def doubleList(value: Seq[Double]): Value

    Create a list of doubles value.

    Create a list of doubles value.

    value

    Scala double list

    returns

    wrapped value

  20. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def float(value: Float): Value

    Create a float value.

    Create a float value.

    value

    value to wrap

    returns

    wrapped value

  24. def floatList(value: Seq[Float]): Value

    Create a list of float value.

    Create a list of float value.

    value

    Scala float list

    returns

    wrapped value

  25. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  27. def int(value: Int): Value

    Create an int value.

    Create an int value.

    value

    value to wrap

    returns

    wrapped value

  28. def intList(value: Seq[Int]): Value

    Create a list of int value.

    Create a list of int value.

    value

    Scala int list

    returns

    wrapped value

  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def listValue(list: List): Value

  31. def long(value: Long): Value

    Create a long value.

    Create a long value.

    value

    value to wrap

    returns

    wrapped value

  32. def longList(value: Seq[Long]): Value

    Create a list of longs value.

    Create a list of longs value.

    value

    Scala long list

    returns

    wrapped value

  33. def model(value: Model): Value

    Create a model value.

    Create a model value.

    value

    data shape to store

    returns

    value with model

  34. def modelList(value: Seq[Model]): Value

    Create a list of models value.

    Create a list of models value.

    value

    list of models

    returns

    value with list of models

  35. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  38. def scalarValue(scalar: Scalar): Value

  39. def short(value: Short): Value

    Create an short value.

    Create an short value.

    value

    value to wrap

    returns

    wrapped value

  40. def shortList(value: Seq[Short]): Value

    Create a list of short value.

    Create a list of short value.

    value

    Scala short list

    returns

    wrapped value

  41. def string(value: String): Value

    Create a string value.

    Create a string value.

    value

    value to wrap

    returns

    wrapped value

  42. def stringList(value: Seq[String]): Value

    Create a list of strings value.

    Create a list of strings value.

    value

    Scala string list

    returns

    wrapped value

  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  44. def tensor[T](tensor: Tensor[T]): Value

    Create a tensor value.

    Create a tensor value.

    Dimensions must have size greater than 0. Use -1 for dimensions that can be any size.

    tensor

    tensor value

    returns

    tensor value

  45. def tensorList[T](value: Seq[Tensor[T]]): Value

    Create a list of tensors.

    Create a list of tensors.

    value

    tensors

    returns

    value with tensors

  46. def tensorValue(tensor: Tensor[_]): Tensor

    Convert ml.combust.mleap.tensor.Tensor to ml.bundle.Tensor.

    Convert ml.combust.mleap.tensor.Tensor to ml.bundle.Tensor.

    tensor

    mleap tensor

    returns

    bundle tensor

  47. def toString(): String

    Definition Classes
    AnyRef → Any
  48. def vector[T](values: Array[T])(implicit arg0: ClassTag[T]): Value

    Create a tensor value with 1 dimension.

    Create a tensor value with 1 dimension.

    T

    type of vector

    values

    values of vector

    returns

    tensor with vector

  49. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped