com.eharmony.aloha.models

SegmentationModel

case class SegmentationModel[U, SN, N, A, B <: U](modelId: ModelIdentity, submodel: Submodel[SN, A, U], thresholds: IndexedSeq[SN], labels: IndexedSeq[N], auditor: Auditor[U, N, B])(implicit thresholdOrdering: Ordering[SN]) extends SubmodelBase[U, N, A, B] with Product with Serializable

A model that runs the subModel and returns the label associated with the segment in which the inner model's score falls. This is done via a linear scan of the thresholds.

U

upper type bound for output of model and all submodels.

SN

submodel's natural type

N

segmentation model's natural type

A

the model input type

B

the model's ultimate output type

modelId

a model identifier

submodel

a sub model

thresholds

a sequence of ordered thresholds against which

labels

a set of labesl to use

thresholdOrdering

an implicit ordering

Linear Supertypes
Serializable, Serializable, Product, Equals, SubmodelBase[U, N, A, B], Model[A, B], (A) ⇒ B, Submodel[N, A, B], Closeable, AutoCloseable, Identifiable[ModelIdentity], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SegmentationModel
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. SubmodelBase
  7. Model
  8. Function1
  9. Submodel
  10. Closeable
  11. AutoCloseable
  12. Identifiable
  13. AnyRef
  14. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SegmentationModel(modelId: ModelIdentity, submodel: Submodel[SN, A, U], thresholds: IndexedSeq[SN], labels: IndexedSeq[N], auditor: Auditor[U, N, B])(implicit thresholdOrdering: Ordering[SN])

    modelId

    a model identifier

    submodel

    a sub model

    thresholds

    a sequence of ordered thresholds against which

    labels

    a set of labesl to use

    thresholdOrdering

    an implicit ordering

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. def andThen[A](g: (B) ⇒ A): (A) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  7. final def apply(a: A): B

    Definition Classes
    SubmodelBase → Function1
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. val auditor: Auditor[U, N, B]

    Definition Classes
    SegmentationModelSubmodelBase
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def close(): Unit

    Definition Classes
    SegmentationModelSubmodelBase → Closeable → AutoCloseable
  12. def compose[A](g: (A) ⇒ A): (A) ⇒ B

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def failure(errorMsgs: ⇒ Seq[String] = Nil, missingVarNames: ⇒ Set[String] = Set.empty, subvalues: Seq[U] = Nil): Subvalue[B, N]

    Attributes
    protected[this]
    Definition Classes
    SubmodelBase
  15. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. val labels: IndexedSeq[N]

    a set of labesl to use

  19. val modelId: ModelIdentity

    a model identifier

    a model identifier

    Definition Classes
    SegmentationModelIdentifiable
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  23. val submodel: Submodel[SN, A, U]

    a sub model

  24. def subvalue(a: A): Subvalue[B, N]

    Definition Classes
    SegmentationModelSubmodel
  25. def success(naturalValue: N, errorMsgs: ⇒ Seq[String] = Nil, missingVarNames: ⇒ Set[String] = Set.empty, subvalues: Seq[U] = Nil, prob: ⇒ Option[Float] = None): Subvalue[B, N]

    Attributes
    protected[this]
    Definition Classes
    SubmodelBase
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. val thresholds: IndexedSeq[SN]

    a sequence of ordered thresholds against which

  28. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from SubmodelBase[U, N, A, B]

Inherited from Model[A, B]

Inherited from (A) ⇒ B

Inherited from Submodel[N, A, B]

Inherited from Closeable

Inherited from AutoCloseable

Inherited from Identifiable[ModelIdentity]

Inherited from AnyRef

Inherited from Any

Ungrouped