Class/Object

com.eharmony.aloha.audit.impl

EitherAuditor

Related Docs: object EitherAuditor | package impl

Permalink

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
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Permalink

    (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]

    Permalink

    Construct a new EitherAuditor[M].

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

    M

    the type of success value in the new auditor.

    Attributes
    protected[this]

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

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

    Permalink

    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
  6. def clone(): AnyRef

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

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

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

    Permalink
    Definition Classes
    EitherAuditorAuditor
  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. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  17. 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]

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped