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
- Alphabetic
- By Inheritance
Inherited
- Curve
- Serializable
- Product
- Equals
- Aggregator
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
andThenPresent[D](present2: (MetricCurvePoints) ⇒ D): Aggregator[Prediction[Boolean, Double], MetricCurve, D]
- Definition Classes
- Aggregator
-
def
append(l: MetricCurve, r: Prediction[Boolean, Double]): MetricCurve
- Definition Classes
- Aggregator
-
def
appendAll(old: MetricCurve, items: TraversableOnce[Prediction[Boolean, Double]]): MetricCurve
- Definition Classes
- Aggregator
-
def
apply(inputs: TraversableOnce[Prediction[Boolean, Double]]): MetricCurvePoints
- Definition Classes
- Aggregator
-
def
applyCumulatively[In <: TraversableOnce[Prediction[Boolean, Double]], Out](inputs: In)(implicit bf: CanBuildFrom[In, MetricCurvePoints, Out]): Out
- Definition Classes
- Aggregator
-
def
applyOption(inputs: TraversableOnce[Prediction[Boolean, Double]]): Option[MetricCurvePoints]
- Definition Classes
- Aggregator
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
composePrepare[A1](prepare2: (A1) ⇒ Prediction[Boolean, Double]): Aggregator[A1, MetricCurve, MetricCurvePoints]
- Definition Classes
- Aggregator
-
def
cumulativeIterator(inputs: Iterator[Prediction[Boolean, Double]]): Iterator[MetricCurvePoints]
- Definition Classes
- Aggregator
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
join[A2 <: Prediction[Boolean, Double], B2, C2](that: Aggregator[A2, B2, C2]): Aggregator[A2, (MetricCurve, B2), (MetricCurvePoints, C2)]
- Definition Classes
- Aggregator
-
def
lift: MonoidAggregator[Prediction[Boolean, Double], Option[MetricCurve], Option[MetricCurvePoints]]
- Definition Classes
- Aggregator
- val metric: AUCMetric
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
prepare(input: Prediction[Boolean, Double]): MetricCurve
- Definition Classes
- Curve → Aggregator
-
def
present(c: MetricCurve): MetricCurvePoints
- Definition Classes
- Curve → Aggregator
-
def
reduce(items: TraversableOnce[MetricCurve]): MetricCurve
- Definition Classes
- Aggregator
-
def
reduce(l: MetricCurve, r: MetricCurve): MetricCurve
- Definition Classes
- Aggregator
-
def
reduceOption(items: TraversableOnce[MetricCurve]): Option[MetricCurve]
- Definition Classes
- Aggregator
- val samples: Int
-
def
semigroup: Semigroup[MetricCurve]
- Definition Classes
- Curve → Aggregator
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toFold: Fold[Prediction[Boolean, Double], Option[MetricCurvePoints]]
- Definition Classes
- Aggregator
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
zip[A2, B2, C2](ag2: Aggregator[A2, B2, C2]): Aggregator[(Prediction[Boolean, Double], A2), (MetricCurve, B2), (MetricCurvePoints, C2)]
- Definition Classes
- Aggregator