case class Curve(metric: AUCMetric, samples: Int = 100) extends Aggregator[Prediction[Boolean, Double], MetricCurve, MetricCurvePoints] with Product with Serializable

Compute a series of points for a collection of predictions.

Internally a linspace is defined using the given number of samples. Each point in the linspace represents a threshold which is used to build a confusion matrix. The (x,y) location of the line is then returned.

AUCMetric which is given to the aggregate selects the function to apply on the confusion matrix prior to the AUC calculation.

metric

Which function to apply on the confusion matrix.

samples

Number of samples to use for the curve definition.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Curve
  2. Serializable
  3. Product
  4. Equals
  5. Aggregator
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Curve(metric: AUCMetric, samples: Int = 100)

    metric

    Which function to apply on the confusion matrix.

    samples

    Number of samples to use for the curve definition.

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 andThenPresent[D](present2: (MetricCurvePoints) ⇒ D): Aggregator[Prediction[Boolean, Double], MetricCurve, D]
    Definition Classes
    Aggregator
  5. def append(l: MetricCurve, r: Prediction[Boolean, Double]): MetricCurve
    Definition Classes
    Aggregator
  6. def appendAll(old: MetricCurve, items: TraversableOnce[Prediction[Boolean, Double]]): MetricCurve
    Definition Classes
    Aggregator
  7. def apply(inputs: TraversableOnce[Prediction[Boolean, Double]]): MetricCurvePoints
    Definition Classes
    Aggregator
  8. def applyCumulatively[In <: TraversableOnce[Prediction[Boolean, Double]], Out](inputs: In)(implicit bf: CanBuildFrom[In, MetricCurvePoints, Out]): Out
    Definition Classes
    Aggregator
  9. def applyOption(inputs: TraversableOnce[Prediction[Boolean, Double]]): Option[MetricCurvePoints]
    Definition Classes
    Aggregator
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  12. def composePrepare[A1](prepare2: (A1) ⇒ Prediction[Boolean, Double]): Aggregator[A1, MetricCurve, MetricCurvePoints]
    Definition Classes
    Aggregator
  13. def cumulativeIterator(inputs: Iterator[Prediction[Boolean, Double]]): Iterator[MetricCurvePoints]
    Definition Classes
    Aggregator
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def join[A2 <: Prediction[Boolean, Double], B2, C2](that: Aggregator[A2, B2, C2]): Aggregator[A2, (MetricCurve, B2), (MetricCurvePoints, C2)]
    Definition Classes
    Aggregator
  19. def lift: MonoidAggregator[Prediction[Boolean, Double], Option[MetricCurve], Option[MetricCurvePoints]]
    Definition Classes
    Aggregator
  20. val metric: AUCMetric
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def prepare(input: Prediction[Boolean, Double]): MetricCurve
    Definition Classes
    Curve → Aggregator
  25. def present(c: MetricCurve): MetricCurvePoints
    Definition Classes
    Curve → Aggregator
  26. def reduce(items: TraversableOnce[MetricCurve]): MetricCurve
    Definition Classes
    Aggregator
  27. def reduce(l: MetricCurve, r: MetricCurve): MetricCurve
    Definition Classes
    Aggregator
  28. def reduceOption(items: TraversableOnce[MetricCurve]): Option[MetricCurve]
    Definition Classes
    Aggregator
  29. val samples: Int
  30. def semigroup: Semigroup[MetricCurve]
    Definition Classes
    Curve → Aggregator
  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def toFold: Fold[Prediction[Boolean, Double], Option[MetricCurvePoints]]
    Definition Classes
    Aggregator
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  36. def zip[A2, B2, C2](ag2: Aggregator[A2, B2, C2]): Aggregator[(Prediction[Boolean, Double], A2), (MetricCurve, B2), (MetricCurvePoints, C2)]
    Definition Classes
    Aggregator

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Aggregator[Prediction[Boolean, Double], MetricCurve, MetricCurvePoints]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped