Class

com.salesforce.op.evaluators

BinaryClassificationMetrics

Related Doc: package evaluators

Permalink

case class BinaryClassificationMetrics(Precision: Double, Recall: Double, F1: Double, AuROC: Double, AuPR: Double, Error: Double, TP: Double, TN: Double, FP: Double, FN: Double, ThresholdMetrics: BinaryThresholdMetrics) extends EvaluationMetrics with Product with Serializable

Metrics for binary classification models

Precision

Overall precision of model, TP / (TP + FP)

Recall

Overall recall of model, TP / (TP + FN)

F1

Overall F1 score of model, 2 / (1 / Precision + 1 / Recall)

AuROC

AuROC of model

AuPR

AuPR of model

Error

Error of model

TP

True positive count at Spark's default decision threshold (0.5)

TN

True negative count at Spark's default decision threshold (0.5)

FP

False positive count at Spark's default decision threshold (0.5)

FN

False negative count at Spark's default decision threshold (0.5)

ThresholdMetrics

Metrics across different threshold values

Linear Supertypes
Product, Equals, EvaluationMetrics, JsonLike, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BinaryClassificationMetrics
  2. Product
  3. Equals
  4. EvaluationMetrics
  5. JsonLike
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BinaryClassificationMetrics(Precision: Double, Recall: Double, F1: Double, AuROC: Double, AuPR: Double, Error: Double, TP: Double, TN: Double, FP: Double, FN: Double, ThresholdMetrics: BinaryThresholdMetrics)

    Permalink

    Precision

    Overall precision of model, TP / (TP + FP)

    Recall

    Overall recall of model, TP / (TP + FN)

    F1

    Overall F1 score of model, 2 / (1 / Precision + 1 / Recall)

    AuROC

    AuROC of model

    AuPR

    AuPR of model

    Error

    Error of model

    TP

    True positive count at Spark's default decision threshold (0.5)

    TN

    True negative count at Spark's default decision threshold (0.5)

    FP

    False positive count at Spark's default decision threshold (0.5)

    FN

    False negative count at Spark's default decision threshold (0.5)

    ThresholdMetrics

    Metrics across different threshold values

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. val AuPR: Double

    Permalink

    AuPR of model

  5. val AuROC: Double

    Permalink

    AuROC of model

  6. val Error: Double

    Permalink

    Error of model

  7. val F1: Double

    Permalink

    Overall F1 score of model, 2 / (1 / Precision + 1 / Recall)

  8. val FN: Double

    Permalink

    False negative count at Spark's default decision threshold (0.5)

  9. val FP: Double

    Permalink

    False positive count at Spark's default decision threshold (0.5)

  10. val Precision: Double

    Permalink

    Overall precision of model, TP / (TP + FP)

  11. val Recall: Double

    Permalink

    Overall recall of model, TP / (TP + FN)

  12. val TN: Double

    Permalink

    True negative count at Spark's default decision threshold (0.5)

  13. val TP: Double

    Permalink

    True positive count at Spark's default decision threshold (0.5)

  14. val ThresholdMetrics: BinaryThresholdMetrics

    Permalink

    Metrics across different threshold values

  15. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  24. def prCurve: Seq[(Double, Double)]

    Permalink
  25. def rocCurve: Seq[(Double, Double)]

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

    Permalink
    Definition Classes
    AnyRef
  27. def toJson(pretty: Boolean = true): String

    Permalink

    Write this instance to json string

    Write this instance to json string

    pretty

    should pretty print

    returns

    json string of the instance

    Definition Classes
    JsonLike
  28. def toMap: Map[String, Any]

    Permalink

    Convert metrics class to a map

    Convert metrics class to a map

    returns

    a map from metric name to metric value

    Definition Classes
    EvaluationMetrics
  29. def toMetadata(skipUnsupported: Boolean = false): Metadata

    Permalink

    Convert metrics into Metadata for saving

    Convert metrics into Metadata for saving

    skipUnsupported

    skip unsupported values

    returns

    Metadata metadata

    Definition Classes
    EvaluationMetrics
    Exceptions thrown

    RuntimeException in case of unsupported value type

  30. def toString(): String

    Permalink

    This instance json string

    This instance json string

    returns

    json string of the instance

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

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

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

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

Inherited from Product

Inherited from Equals

Inherited from EvaluationMetrics

Inherited from JsonLike

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped