Packages

sealed trait LinearSVCSummary extends BinaryClassificationSummary

Abstraction for LinearSVC results for a given model.

Source
LinearSVC.scala
Linear Supertypes
BinaryClassificationSummary, ClassificationSummary, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LinearSVCSummary
  2. BinaryClassificationSummary
  3. ClassificationSummary
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def labelCol: String

    Field in "predictions" which gives the true label of each instance (if available).

    Field in "predictions" which gives the true label of each instance (if available).

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")
  2. abstract def predictionCol: String

    Field in "predictions" which gives the prediction of each class.

    Field in "predictions" which gives the prediction of each class.

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")
  3. abstract def predictions: DataFrame

    Dataframe output by the model's transform method.

    Dataframe output by the model's transform method.

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")
  4. abstract def weightCol: String

    Field in "predictions" which gives the weight of each instance.

    Field in "predictions" which gives the weight of each instance.

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def accuracy: Double

    Returns accuracy.

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

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")
  5. lazy val areaUnderROC: Double

    Computes the area under the receiver operating characteristic (ROC) curve.

    Computes the area under the receiver operating characteristic (ROC) curve.

    Definition Classes
    BinaryClassificationSummary
    Annotations
    @Since("3.1.0")
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def fMeasureByLabel: Array[Double]

    Returns f1-measure for each label (category).

    Returns f1-measure for each label (category).

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")
  11. def fMeasureByLabel(beta: Double): Array[Double]

    Returns f-measure for each label (category).

    Returns f-measure for each label (category).

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")
  12. lazy val fMeasureByThreshold: DataFrame

    Returns a dataframe with two fields (threshold, F-Measure) curve with beta = 1.0.

    Returns a dataframe with two fields (threshold, F-Measure) curve with beta = 1.0.

    Definition Classes
    BinaryClassificationSummary
    Annotations
    @Since("3.1.0") @transient()
  13. def falsePositiveRateByLabel: Array[Double]

    Returns false positive rate for each label (category).

    Returns false positive rate for each label (category).

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def labels: Array[Double]

    Returns the sequence of labels in ascending order.

    Returns the sequence of labels in ascending order. This order matches the order used in metrics which are specified as arrays over labels, e.g., truePositiveRateByLabel.

    Note: In most cases, it will be values {0.0, 1.0, ..., numClasses-1}, However, if the training set is missing a label, then all of the arrays over labels (e.g., from truePositiveRateByLabel) will be of length numClasses-1 instead of the expected numClasses.

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  21. lazy val pr: DataFrame

    Returns the precision-recall curve, which is a Dataframe containing two fields recall, precision with (0.0, 1.0) prepended to it.

    Returns the precision-recall curve, which is a Dataframe containing two fields recall, precision with (0.0, 1.0) prepended to it.

    Definition Classes
    BinaryClassificationSummary
    Annotations
    @Since("3.1.0") @transient()
  22. def precisionByLabel: Array[Double]

    Returns precision for each label (category).

    Returns precision for each label (category).

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")
  23. lazy val precisionByThreshold: DataFrame

    Returns a dataframe with two fields (threshold, precision) curve.

    Returns a dataframe with two fields (threshold, precision) curve. Every possible probability obtained in transforming the dataset are used as thresholds used in calculating the precision.

    Definition Classes
    BinaryClassificationSummary
    Annotations
    @Since("3.1.0") @transient()
  24. def recallByLabel: Array[Double]

    Returns recall for each label (category).

    Returns recall for each label (category).

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")
  25. lazy val recallByThreshold: DataFrame

    Returns a dataframe with two fields (threshold, recall) curve.

    Returns a dataframe with two fields (threshold, recall) curve. Every possible probability obtained in transforming the dataset are used as thresholds used in calculating the recall.

    Definition Classes
    BinaryClassificationSummary
    Annotations
    @Since("3.1.0") @transient()
  26. lazy val roc: DataFrame

    Returns the receiver operating characteristic (ROC) curve, which is a Dataframe having two fields (FPR, TPR) with (0.0, 0.0) prepended and (1.0, 1.0) appended to it.

    Returns the receiver operating characteristic (ROC) curve, which is a Dataframe having two fields (FPR, TPR) with (0.0, 0.0) prepended and (1.0, 1.0) appended to it. See http://en.wikipedia.org/wiki/Receiver_operating_characteristic

    Definition Classes
    BinaryClassificationSummary
    Annotations
    @Since("3.1.0") @transient()
  27. def scoreCol: String

    Field in "predictions" which gives the probability or rawPrediction of each class as a vector.

    Field in "predictions" which gives the probability or rawPrediction of each class as a vector.

    Definition Classes
    BinaryClassificationSummary
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. def truePositiveRateByLabel: Array[Double]

    Returns true positive rate for each label (category).

    Returns true positive rate for each label (category).

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. def weightedFMeasure: Double

    Returns weighted averaged f1-measure.

    Returns weighted averaged f1-measure.

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")
  35. def weightedFMeasure(beta: Double): Double

    Returns weighted averaged f-measure.

    Returns weighted averaged f-measure.

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")
  36. def weightedFalsePositiveRate: Double

    Returns weighted false positive rate.

    Returns weighted false positive rate.

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")
  37. def weightedPrecision: Double

    Returns weighted averaged precision.

    Returns weighted averaged precision.

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")
  38. def weightedRecall: Double

    Returns weighted averaged recall.

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

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")
  39. def weightedTruePositiveRate: Double

    Returns weighted true positive rate.

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

    Definition Classes
    ClassificationSummary
    Annotations
    @Since("3.1.0")

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from BinaryClassificationSummary

Inherited from ClassificationSummary

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Members