Class/Object

ml.combust.bundle.dsl

Model

Related Docs: object Model | package dsl

Permalink

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

Linear Supertypes
Serializable, Serializable, Product, Equals, HasAttributes[Model], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Model
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HasAttributes
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Model(op: String, attributes: Attributes = Attributes())

    Permalink

    op

    op name for the model

    attributes

    optional list of attributes for the model

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def asBundle: bundle.Model

    Permalink

    Convert to bundle model.

    Convert to bundle model.

    returns

    bundle model definition

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val attributes: Attributes

    Permalink

    optional list of attributes for the model

    optional list of attributes for the model

    Definition Classes
    ModelHasAttributes
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getValue(name: String): Option[Value]

    Permalink

    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
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. val op: String

    Permalink

    op name for the model

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

    Permalink
    Definition Classes
    AnyRef
  18. def value(name: String): Value

    Permalink

    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
  19. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def withAttributes(attrs: Attributes): Model

    Permalink

    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
    ModelHasAttributes
  23. def withValue(name: String, value: Option[Value]): Model

    Permalink

    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
  24. def withValue(name: String, value: Value): Model

    Permalink

    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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HasAttributes[Model]

Inherited from AnyRef

Inherited from Any

Ungrouped