c

com.spotify.noether

ClassificationReport

final case class ClassificationReport(threshold: Double = 0.5, beta: Double = 1.0) extends Aggregator[Prediction[Boolean, Double], Map[(Int, Int), Long], Report] with Product with Serializable

Generate a Classification Report for a collection of binary predictions. The output of this aggregator will be a Report object.

threshold

Threshold to apply to get the predictions.

beta

Beta parameter used in the f-score calculation.

Linear Supertypes
Serializable, Product, Equals, Aggregator[Prediction[Boolean, Double], Map[(Int, Int), Long], Report], Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ClassificationReport
  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 ClassificationReport(threshold: Double = 0.5, beta: Double = 1.0)

    threshold

    Threshold to apply to get the predictions.

    beta

    Beta parameter used in the f-score calculation.

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: (Report) ⇒ D): Aggregator[Prediction[Boolean, Double], Map[(Int, Int), Long], D]
    Definition Classes
    Aggregator
  5. def append(l: Map[(Int, Int), Long], r: Prediction[Boolean, Double]): Map[(Int, Int), Long]
    Definition Classes
    Aggregator
  6. def appendAll(old: Map[(Int, Int), Long], items: TraversableOnce[Prediction[Boolean, Double]]): Map[(Int, Int), Long]
    Definition Classes
    Aggregator
  7. def apply(inputs: TraversableOnce[Prediction[Boolean, Double]]): Report
    Definition Classes
    Aggregator
  8. def applyCumulatively[In <: TraversableOnce[Prediction[Boolean, Double]], Out](inputs: In)(implicit bf: CanBuildFrom[In, Report, Out]): Out
    Definition Classes
    Aggregator
  9. def applyOption(inputs: TraversableOnce[Prediction[Boolean, Double]]): Option[Report]
    Definition Classes
    Aggregator
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. val beta: Double
  12. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  13. def composePrepare[A1](prepare2: (A1) ⇒ Prediction[Boolean, Double]): Aggregator[A1, Map[(Int, Int), Long], Report]
    Definition Classes
    Aggregator
  14. def cumulativeIterator(inputs: Iterator[Prediction[Boolean, Double]]): Iterator[Report]
    Definition Classes
    Aggregator
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def join[A2 <: Prediction[Boolean, Double], B2, C2](that: Aggregator[A2, B2, C2]): Aggregator[A2, (Map[(Int, Int), Long], B2), (Report, C2)]
    Definition Classes
    Aggregator
  20. def lift: MonoidAggregator[Prediction[Boolean, Double], Option[Map[(Int, Int), Long]], Option[Report]]
    Definition Classes
    Aggregator
  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]): Map[(Int, Int), Long]
    Definition Classes
    ClassificationReport → Aggregator
  25. def present(m: Map[(Int, Int), Long]): Report
    Definition Classes
    ClassificationReport → Aggregator
  26. def reduce(items: TraversableOnce[Map[(Int, Int), Long]]): Map[(Int, Int), Long]
    Definition Classes
    Aggregator
  27. def reduce(l: Map[(Int, Int), Long], r: Map[(Int, Int), Long]): Map[(Int, Int), Long]
    Definition Classes
    Aggregator
  28. def reduceOption(items: TraversableOnce[Map[(Int, Int), Long]]): Option[Map[(Int, Int), Long]]
    Definition Classes
    Aggregator
  29. def semigroup: Semigroup[Map[(Int, Int), Long]]
    Definition Classes
    ClassificationReport → Aggregator
  30. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  31. val threshold: Double
  32. def toFold: Fold[Prediction[Boolean, Double], Option[Report]]
    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), (Map[(Int, Int), Long], B2), (Report, C2)]
    Definition Classes
    Aggregator

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Aggregator[Prediction[Boolean, Double], Map[(Int, Int), Long], Report]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped