Class

org.apache.spark.mllib.evaluation

MulticlassMetrics

Related Doc: package evaluation

Permalink

class MulticlassMetrics extends AnyRef

Evaluator for multiclass classification.

Annotations
@Since( "1.1.0" )
Source
MulticlassMetrics.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MulticlassMetrics
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MulticlassMetrics(predictionAndLabels: RDD[(Double, Double)])

    Permalink

    predictionAndLabels

    an RDD of (prediction, label) pairs.

    Annotations
    @Since( "1.1.0" )

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

    Permalink

    Returns accuracy (equals to the total number of correctly classified instances out of the total number of instances.)

    Returns accuracy (equals to the total number of correctly classified instances out of the total number of instances.)

    Annotations
    @Since( "2.0.0" )
  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 confusionMatrix: Matrix

    Permalink

    Returns confusion matrix: predicted classes are in columns, they are ordered by class label ascending, as in "labels"

    Returns confusion matrix: predicted classes are in columns, they are ordered by class label ascending, as in "labels"

    Annotations
    @Since( "1.1.0" )
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def fMeasure(label: Double): Double

    Permalink

    Returns f1-measure for a given label (category)

    Returns f1-measure for a given label (category)

    label

    the label.

    Annotations
    @Since( "1.1.0" )
  11. def fMeasure(label: Double, beta: Double): Double

    Permalink

    Returns f-measure for a given label (category)

    Returns f-measure for a given label (category)

    label

    the label.

    beta

    the beta parameter.

    Annotations
    @Since( "1.1.0" )
  12. def falsePositiveRate(label: Double): Double

    Permalink

    Returns false positive rate for a given label (category)

    Returns false positive rate for a given label (category)

    label

    the label.

    Annotations
    @Since( "1.1.0" )
  13. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  17. lazy val labels: Array[Double]

    Permalink

    Returns the sequence of labels in ascending order

    Returns the sequence of labels in ascending order

    Annotations
    @Since( "1.1.0" )
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def precision(label: Double): Double

    Permalink

    Returns precision for a given label (category)

    Returns precision for a given label (category)

    label

    the label.

    Annotations
    @Since( "1.1.0" )
  22. def recall(label: Double): Double

    Permalink

    Returns recall for a given label (category)

    Returns recall for a given label (category)

    label

    the label.

    Annotations
    @Since( "1.1.0" )
  23. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. def truePositiveRate(label: Double): Double

    Permalink

    Returns true positive rate for a given label (category)

    Returns true positive rate for a given label (category)

    label

    the label.

    Annotations
    @Since( "1.1.0" )
  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( ... )
  29. def weightedFMeasure(beta: Double): Double

    Permalink

    Returns weighted averaged f-measure

    Returns weighted averaged f-measure

    beta

    the beta parameter.

    Annotations
    @Since( "1.1.0" )
  30. lazy val weightedFMeasure: Double

    Permalink

    Returns weighted averaged f1-measure

    Returns weighted averaged f1-measure

    Annotations
    @Since( "1.1.0" )
  31. lazy val weightedFalsePositiveRate: Double

    Permalink

    Returns weighted false positive rate

    Returns weighted false positive rate

    Annotations
    @Since( "1.1.0" )
  32. lazy val weightedPrecision: Double

    Permalink

    Returns weighted averaged precision

    Returns weighted averaged precision

    Annotations
    @Since( "1.1.0" )
  33. lazy val weightedRecall: Double

    Permalink

    Returns weighted averaged recall (equals to precision, recall and f-measure)

    Returns weighted averaged recall (equals to precision, recall and f-measure)

    Annotations
    @Since( "1.1.0" )
  34. lazy val weightedTruePositiveRate: Double

    Permalink

    Returns weighted true positive rate (equals to precision, recall and f-measure)

    Returns weighted true positive rate (equals to precision, recall and f-measure)

    Annotations
    @Since( "1.1.0" )

Deprecated Value Members

  1. lazy val fMeasure: Double

    Permalink

    Returns f-measure (equals to precision and recall because precision equals recall)

    Returns f-measure (equals to precision and recall because precision equals recall)

    Annotations
    @Since( "1.1.0" ) @deprecated
    Deprecated

    (Since version 2.0.0) Use accuracy.

  2. lazy val precision: Double

    Permalink

    Returns precision

    Returns precision

    Annotations
    @Since( "1.1.0" ) @deprecated
    Deprecated

    (Since version 2.0.0) Use accuracy.

  3. lazy val recall: Double

    Permalink

    Returns recall (equals to precision for multiclass classifier because sum of all false positives is equal to sum of all false negatives)

    Returns recall (equals to precision for multiclass classifier because sum of all false positives is equal to sum of all false negatives)

    Annotations
    @Since( "1.1.0" ) @deprecated
    Deprecated

    (Since version 2.0.0) Use accuracy.

Inherited from AnyRef

Inherited from Any

Ungrouped