com.eharmony.aloha.audit.impl

EitherAuditor

sealed abstract class EitherAuditor[A] extends MorphableAuditor[Either[EitherAuditorError, _], A, Either[EitherAuditorError, A]]

An EitherAuditor encodes the idea of success or failure. In the case of failure, (meaning a model could not produce a prediction) diagnostic information is encoded in the form of an EitherAuditorError. No diagnostic information is emitted when a "successful" prediction is produced, even if compromises were made in order to produce the prediction or problems like missing data were encountered.

To construct an EitherAuditor, use the apply factory methods in the companion object.

Created by ryan.deak on 10/2/17.

A

the type of value returned in the success case.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EitherAuditor
  2. MorphableAuditor
  3. Auditor
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EitherAuditor()

Abstract Value Members

  1. abstract def aggregateDiagnostics(errorMsgs: Seq[String], missingVarNames: Set[String], subvalues: Seq[Either[EitherAuditorError, _]]): (Seq[String], Set[String], List[ModelIdentity])

    (Possibly) aggregate the information from subvalues into the error messages, missing variable names and model IDs with problems

    (Possibly) aggregate the information from subvalues into the error messages, missing variable names and model IDs with problems

    errorMsgs

    error messages from the current model failure.

    missingVarNames

    missing variable names from the current model failure.

    subvalues

    diagnostic information from submodel successes / failures.

    returns

    (possibly) aggregated errors, missing variable info, and IDs of submodels that couldn't produce predictions.

    Attributes
    protected[this]
  2. abstract def changeTo[M]: EitherAuditor[M]

    Construct a new EitherAuditor[M].

    Construct a new EitherAuditor[M]. Notice this allows succeeds.

    M

    the type of success value in the new auditor.

    returns

    Attributes
    protected[this]

Concrete 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def changeType[M](implicit arg0: RefInfo[M]): Some[EitherAuditor[M]]

    Return an EitherAuditor for success type M.

    Return an EitherAuditor for success type M.

    M

    type of values returned on success

    returns

    a new auditor. An EitherAuditor can be returned for any type M.

    Definition Classes
    EitherAuditorMorphableAuditor
  8. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef → Any
  11. def failure(modelId: ModelIdentity, errorMsgs: ⇒ Seq[String] = Nil, missingVarNames: ⇒ Set[String] = Set.empty, subvalues: Seq[Either[EitherAuditorError, _]] = Nil): Either[EitherAuditorError, A]

    Definition Classes
    EitherAuditorAuditor
  12. def finalize(): Unit

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

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

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

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

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

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

    Definition Classes
    AnyRef
  19. def success(modelId: ModelIdentity, valueToAudit: A, errorMsgs: ⇒ Seq[String] = Nil, missingVarNames: ⇒ Set[String] = Set.empty, subvalues: Seq[Either[EitherAuditorError, _]] = Nil, prob: ⇒ Option[Float] = None): Either[EitherAuditorError, A]

    Definition Classes
    EitherAuditorAuditor
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped