case class Model(op: String, attributes: Attributes = Attributes()) extends HasAttributes[Model] with Product with Serializable
Class that encodes all information need to serialize or deserialize a machine learning model.
Models encode things like coefficients for linear regressions, labels for string indexers, sizes for one hot encoders, decision trees, and any other data needed to serialize and deserialize ML models and feature builders.
- op
op name for the model
- attributes
optional list of attributes for the model
- Alphabetic
- By Inheritance
- Model
- Serializable
- Serializable
- Product
- Equals
- HasAttributes
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Model(op: String, attributes: Attributes = Attributes())
- op
op name for the model
- attributes
optional list of attributes for the model
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
-
def
asBundle: bundle.Model
Convert to bundle model.
Convert to bundle model.
- returns
bundle model definition
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
attributes: Attributes
The attribute list
The attribute list
- Definition Classes
- Model → HasAttributes
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getValue(name: String): Option[Value]
Get the Value of an attribute as an Option.
Get the Value of an attribute as an Option.
- name
name of the attribute
- returns
Value of the attribute as an Option[Value], None if it does not exist
- Definition Classes
- HasAttributes
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val op: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
value(name: String): Value
Get the Value of an attribute.
Get the Value of an attribute.
Throws an error if that attribute does not exist.
- name
name of the attribute
- returns
Value of the attribute
- Definition Classes
- HasAttributes
-
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()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withAttributes(attrs: Attributes): Model
Replace the attributes with another list.
Replace the attributes with another list.
- attrs
attributes to use to replace
- returns
copy of T with attributes replaced by list arg
- Definition Classes
- Model → HasAttributes
-
def
withValue(name: String, value: Option[Value]): Model
Add an optional attribute to the list.
Add an optional attribute to the list.
- name
name of the attribute
- value
optional value
- returns
a copy of T with the attribute optionally added
- Definition Classes
- HasAttributes
-
def
withValue(name: String, value: Value): Model
Add an attribute to the list.
Add an attribute to the list.
- name
name of the attribute
- value
value of the attribute
- returns
a copy of T with the attribute added
- Definition Classes
- HasAttributes
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated