c

com.spotify.noether

CalibrationHistogram

final case class CalibrationHistogram(lowerBound: Double = 0.0, upperBound: Double = 1.0, numBuckets: Int = 10) extends Aggregator[Prediction[Double, Double], Map[Double, (Double, Double, Long)], List[CalibrationHistogramBucket]] with Product with Serializable

Split predictions into Tensorflow Model Analysis compatible CalibrationHistogramBucket buckets.

If a prediction is less than the lower bound, it belongs to the bucket [-inf, lower bound) If it is greater than or equal to the upper bound, it belongs to the bucket (upper bound, inf]

lowerBound

Left boundary, inclusive

upperBound

Right boundary, exclusive

numBuckets

Number of buckets in the histogram

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CalibrationHistogram
  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 CalibrationHistogram(lowerBound: Double = 0.0, upperBound: Double = 1.0, numBuckets: Int = 10)

    lowerBound

    Left boundary, inclusive

    upperBound

    Right boundary, exclusive

    numBuckets

    Number of buckets in the histogram

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: (List[CalibrationHistogramBucket]) ⇒ D): Aggregator[Prediction[Double, Double], Map[Double, (Double, Double, Long)], D]
    Definition Classes
    Aggregator
  5. def append(l: Map[Double, (Double, Double, Long)], r: Prediction[Double, Double]): Map[Double, (Double, Double, Long)]
    Definition Classes
    Aggregator
  6. def appendAll(old: Map[Double, (Double, Double, Long)], items: TraversableOnce[Prediction[Double, Double]]): Map[Double, (Double, Double, Long)]
    Definition Classes
    Aggregator
  7. def apply(inputs: TraversableOnce[Prediction[Double, Double]]): List[CalibrationHistogramBucket]
    Definition Classes
    Aggregator
  8. def applyCumulatively[In <: TraversableOnce[Prediction[Double, Double]], Out](inputs: In)(implicit bf: CanBuildFrom[In, List[CalibrationHistogramBucket], Out]): Out
    Definition Classes
    Aggregator
  9. def applyOption(inputs: TraversableOnce[Prediction[Double, Double]]): Option[List[CalibrationHistogramBucket]]
    Definition Classes
    Aggregator
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. val bucketSize: Double
  12. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  13. def composePrepare[A1](prepare2: (A1) ⇒ Prediction[Double, Double]): Aggregator[A1, Map[Double, (Double, Double, Long)], List[CalibrationHistogramBucket]]
    Definition Classes
    Aggregator
  14. def cumulativeIterator(inputs: Iterator[Prediction[Double, Double]]): Iterator[List[CalibrationHistogramBucket]]
    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[Double, Double], B2, C2](that: Aggregator[A2, B2, C2]): Aggregator[A2, (Map[Double, (Double, Double, Long)], B2), (List[CalibrationHistogramBucket], C2)]
    Definition Classes
    Aggregator
  20. def lift: MonoidAggregator[Prediction[Double, Double], Option[Map[Double, (Double, Double, Long)]], Option[List[CalibrationHistogramBucket]]]
    Definition Classes
    Aggregator
  21. val lowerBound: Double
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. val numBuckets: Int
  26. def prepare(input: Prediction[Double, Double]): Map[Double, (Double, Double, Long)]
    Definition Classes
    CalibrationHistogram → Aggregator
  27. def present(m: Map[Double, (Double, Double, Long)]): List[CalibrationHistogramBucket]
    Definition Classes
    CalibrationHistogram → Aggregator
  28. def reduce(items: TraversableOnce[Map[Double, (Double, Double, Long)]]): Map[Double, (Double, Double, Long)]
    Definition Classes
    Aggregator
  29. def reduce(l: Map[Double, (Double, Double, Long)], r: Map[Double, (Double, Double, Long)]): Map[Double, (Double, Double, Long)]
    Definition Classes
    Aggregator
  30. def reduceOption(items: TraversableOnce[Map[Double, (Double, Double, Long)]]): Option[Map[Double, (Double, Double, Long)]]
    Definition Classes
    Aggregator
  31. def semigroup: Semigroup[Map[Double, (Double, Double, Long)]]
    Definition Classes
    CalibrationHistogram → Aggregator
  32. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  33. def toFold: Fold[Prediction[Double, Double], Option[List[CalibrationHistogramBucket]]]
    Definition Classes
    Aggregator
  34. val upperBound: Double
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  38. def zip[A2, B2, C2](ag2: Aggregator[A2, B2, C2]): Aggregator[(Prediction[Double, Double], A2), (Map[Double, (Double, Double, Long)], B2), (List[CalibrationHistogramBucket], C2)]
    Definition Classes
    Aggregator

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Aggregator[Prediction[Double, Double], Map[Double, (Double, Double, Long)], List[CalibrationHistogramBucket]]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped