Class

io.github.mandar2812.dynaml.evaluation

BinaryClassificationMetricsSpark

Related Doc: package evaluation

Permalink

class BinaryClassificationMetricsSpark extends Metrics[Double]

Class implementing the calculation of different binary classification performance metrics

Linear Supertypes
Metrics[Double], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BinaryClassificationMetricsSpark
  2. Metrics
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BinaryClassificationMetricsSpark(scores: RDD[(Double, Double)], len: Long, minmax: (Double, Double))

    Permalink

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. def accuracyByThreshold(): List[(Double, Double)]

    Permalink
  5. def areaUnderPR(): Double

    Permalink

    Calculate the area under the Precision-Recall curve.

  6. def areaUnderROC(): Double

    Permalink

    Calculate the area under the Receiver Operating Characteristic curve.

  7. final def asInstanceOf[T0]: T0

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def fMeasureByThreshold(beta: Double): List[(Double, Double)]

    Permalink

    Calculate the F1 metric by threshold, for an arbitrary beta value

  12. def fMeasureByThreshold(): List[(Double, Double)]

    Permalink

    Calculate the F1 metric by threshold, for a beta value of 1.0

  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def generatePlots(): Unit

    Permalink

    Generate the PR, ROC and F1 measure plots using Scala-Chart.

    Generate the PR, ROC and F1 measure plots using Scala-Chart.

    Definition Classes
    BinaryClassificationMetricsSparkMetrics
  15. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  18. def kpi(): DenseVector[Double]

    Permalink
  19. val len: Long

    Permalink
  20. val length: Long

    Permalink
  21. var name: String

    Permalink
    Attributes
    protected
    Definition Classes
    Metrics
  22. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  25. def pr(): List[(Double, Double)]

    Permalink

    Return the Precision-Recall curve, as a List of Tuple2 (Recall, Precision).

  26. def precisionByThreshold(): List[(Double, Double)]

    Permalink

    Return the Precision-Threshold curve, as a List of Tuple2 (Threshold, Precision).

  27. def print(): Unit

    Permalink
  28. def recallByThreshold(): List[(Double, Double)]

    Permalink

    Return the Recall-Threshold curve, as a List of Tuple2 (Threshold, Recall).

  29. def roc(): List[(Double, Double)]

    Permalink

    Return the Receiver Operating Characteristic curve, as a List of Tuple2 (False Positive Rate, True Positive Rate).

  30. val scores: RDD[(Double, Double)]

    Permalink
    Attributes
    protected
  31. val scoresAndLabels: List[Nothing]

    Permalink
    Attributes
    protected
    Definition Classes
    BinaryClassificationMetricsSparkMetrics
  32. def scores_and_labels: List[Nothing]

    Permalink
  33. def setName(n: String): BinaryClassificationMetricsSpark.this.type

    Permalink
    Definition Classes
    Metrics
  34. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  36. def tpfpByThreshold(): List[(Double, (Double, Double))]

    Permalink

    Return the True Positive and False Positive Rate with respect to the threshold, as a List of Tuple2 (Threshold, (True Positive rate, False Positive Rate)).

  37. final def wait(): Unit

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

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

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

Inherited from Metrics[Double]

Inherited from AnyRef

Inherited from Any

Ungrouped