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.
- Alphabetic
- By Inheritance
- Value
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
-
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
-
def
boolean(value: Boolean): Value
Create a boolean value.
Create a boolean value.
- value
value to wrap
- returns
wrapped value
-
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
-
def
byte(value: Byte): Value
Create an byte value.
Create an byte value.
- value
value to wrap
- returns
wrapped value
-
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
-
def
byteString(value: ByteString): Value
Create a byte string value.
Create a byte string value.
- value
value to wrap
- returns
wrapped value
-
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
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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
-
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
-
def
double(value: Double): Value
Create a double value.
Create a double value.
- value
value to wrap
- returns
wrapped value
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
float(value: Float): Value
Create a float value.
Create a float value.
- value
value to wrap
- returns
wrapped value
-
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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
int(value: Int): Value
Create an int value.
Create an int value.
- value
value to wrap
- returns
wrapped value
-
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
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listValue(list: List): Value
-
def
long(value: Long): Value
Create a long value.
Create a long value.
- value
value to wrap
- returns
wrapped value
-
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
-
def
model(value: Model): Value
Create a model value.
Create a model value.
- value
data shape to store
- returns
value with model
-
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
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def scalarValue(scalar: Scalar): Value
-
def
short(value: Short): Value
Create an short value.
Create an short value.
- value
value to wrap
- returns
wrapped value
-
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
-
def
string(value: String): Value
Create a string value.
Create a string value.
- value
value to wrap
- returns
wrapped value
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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
-
def
tensorList[T](value: Seq[Tensor[T]]): Value
Create a list of tensors.
Create a list of tensors.
- value
tensors
- returns
value with tensors
-
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
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()