Object/Class

com.eharmony.aloha.models.multilabel

MultilabelModel

Related Docs: class MultilabelModel | package multilabel

Permalink

object MultilabelModel extends ParserProviderCompanion with Serializable

Linear Supertypes
Serializable, Serializable, ParserProviderCompanion, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MultilabelModel
  2. Serializable
  3. Serializable
  4. ParserProviderCompanion
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class LabelsAndInfo[K](indices: IndexedSeq[Int], labels: IndexedSeq[K], labelsNotInTrainingSet: Seq[K], problems: Option[GenAggFuncAccessorProblems]) extends Product with Serializable

    Permalink

    Contains information about the labels to be used for predictions, and problems encountered while trying to get those labels.

    Contains information about the labels to be used for predictions, and problems encountered while trying to get those labels.

    K

    type of label or class

    indices

    indices into the sequence of all labels seen during training. These should be sorted in ascending order.

    labels

    labels for which a prediction should be produced. labels are parallel to indices so indices(i) is the index associated with labels(i).

    labelsNotInTrainingSet

    a sequence of labels derived from the input data that could not be found in the sequence of all labels seen during training.

    problems

    any problems encountered when trying to get the labels. This should only be present when the caller indicates labels should be embedded in the input data passed to the prediction function in the MultilabelModel.

    Attributes
    protected[com.eharmony.aloha.models.multilabel]

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. object Parser extends ModelSubmodelParsingPlugin with Logging

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def combineMissing[K](labelInfo: LabelsAndInfo[K], missing: Map[String, Seq[String]]): Set[String]

    Permalink

    Combine the missing variables found into a set.

    Combine the missing variables found into a set.

    K

    type of label or class

    labelInfo

    labels and information about the labels.

    missing

    missing features from

    returns

    a set of missing features

    Attributes
    protected[com.eharmony.aloha.models.multilabel]
  8. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  14. def labelsAndInfo[A, K](a: A, labelsOfInterest: Option[GenAggFunc[A, IndexedSeq[K]]], labelToInd: Map[K, Int], defaultLabelInfo: LabelsAndInfo[K]): LabelsAndInfo[K]

    Permalink

    Get the labels and information about the labels.

    Get the labels and information about the labels.

    A

    input type of the model

    K

    type of label or class

    a

    an input from which label information should be derived if labelsOfInterest is not empty.

    labelsOfInterest

    an optional function used to extract label information from the input a.

    labelToInd

    a mapping from label to index into the sequence of all labels seen during training.

    defaultLabelInfo

    label information related to all labels seen at training time. If labelsOfInterest is not provided, this information will be used.

    returns

    labels and information about the labels.

    Attributes
    protected[com.eharmony.aloha.models.multilabel]
  15. def labelsForPrediction[A, K](example: A, labelsOfInterest: GenAggFunc[A, IndexedSeq[K]], labelToInd: Map[K, Int]): LabelsAndInfo[K]

    Permalink

    Get labels from the input for which a prediction should be produced.

    Get labels from the input for which a prediction should be produced. If labelsOfInterest produces a label not in the training set, it will not be present in the prediction output but it will appear in LabelsAndInfo.labelsNotInTrainingSet.

    A

    input type of the model

    K

    type of label or class

    example

    the example provided to the model

    labelsOfInterest

    a function used to extract labels for which a prediction should be produced.

    labelToInd

    mapping from Label to index into the sequence of all labels seen in the training set.

    returns

    labels and information about the labels.

    Attributes
    protected[com.eharmony.aloha.models.multilabel]
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def parser: ModelParser

    Permalink
  20. def reportNoPrediction[U, K, B <: U](modelId: ModelIdentity, labelInfo: LabelsAndInfo[K], auditor: Auditor[U, Map[K, Double], B]): Subvalue[B, Nothing]

    Permalink

    Report that no prediction attempt was made because of issues with the labels.

    Report that no prediction attempt was made because of issues with the labels.

    U

    upper bound on model output type B

    K

    type of label or class

    B

    output type of the model.

    modelId

    An identifier for the model. Used in error reporting.

    labelInfo

    labels and information about the labels.

    auditor

    an auditor used to audit the output.

    returns

    a SubValue indicating failure.

    Attributes
    protected[com.eharmony.aloha.models.multilabel]
  21. def reportPredictorError[U, K, B <: U](modelId: ModelIdentity, labelInfo: LabelsAndInfo[K], missingFeatureMap: Map[String, Seq[String]], throwable: Throwable, auditor: Auditor[U, Map[K, Double], B]): Subvalue[B, Nothing]

    Permalink

    Report that a Throwable was thrown while invoking the predictor

    Report that a Throwable was thrown while invoking the predictor

    U

    upper bound on model output type B

    K

    type of label or class

    B

    output type of the model.

    modelId

    An identifier for the model. Used in error reporting.

    labelInfo

    labels and information about the labels.

    missingFeatureMap

    missing features from RegressionFeatures

    throwable

    the error the occurred in the predictor.

    auditor

    an auditor used to audit the output.

    returns

    a SubValue indicating failure.

    Attributes
    protected[com.eharmony.aloha.models.multilabel]
  22. def reportSuccess[U, K, B <: U](modelId: ModelIdentity, labelInfo: LabelsAndInfo[K], missing: Map[String, Seq[String]], prediction: Map[K, Double], auditor: Auditor[U, Map[K, Double], B]): Subvalue[B, Map[K, Double]]

    Permalink

    Report that the model succeeded.

    Report that the model succeeded.

    U

    upper bound on model output type B

    K

    type of label or class

    B

    output type of the model.

    modelId

    An identifier for the model. Used in score reporting.

    labelInfo

    labels and information about the labels.

    missing

    missing features from

    prediction

    the prediction(s) made by the embedded predictor.

    auditor

    an auditor used to audit the output.

    returns

    a SubValue indicating success.

    Attributes
    protected[com.eharmony.aloha.models.multilabel]
  23. def reportTooManyMissing[U, K, B <: U](modelId: ModelIdentity, labelInfo: LabelsAndInfo[K], missing: Map[String, Seq[String]], auditor: Auditor[U, Map[K, Double], B]): Subvalue[B, Nothing]

    Permalink

    Report that a prediction could not be made because too many missing features were encountered.

    Report that a prediction could not be made because too many missing features were encountered.

    U

    upper bound on model output type B

    K

    type of label or class

    B

    output type of the model.

    modelId

    An identifier for the model. Used in error reporting.

    labelInfo

    labels and information about the labels.

    missing

    missing features from

    auditor

    an auditor used to audit the output.

    returns

    a SubValue indicating failure.

    Attributes
    protected[com.eharmony.aloha.models.multilabel]
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from ParserProviderCompanion

Inherited from AnyRef

Inherited from Any

Ungrouped