Class

com.spotify.noether

CalibrationHistogram

Related Doc: package noether

Permalink

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
Serializable, Product, Equals, Aggregator[Prediction[Double, Double], Map[Double, (Double, Double, Long)], List[CalibrationHistogramBucket]], Serializable, AnyRef, Any
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)

    Permalink

    lowerBound

    Left boundary, inclusive

    upperBound

    Right boundary, exclusive

    numBuckets

    Number of buckets in the histogram

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def andThenPresent[D](present2: (List[CalibrationHistogramBucket]) ⇒ D): Aggregator[Prediction[Double, Double], Map[Double, (Double, Double, Long)], D]

    Permalink
    Definition Classes
    Aggregator
  5. def append(l: Map[Double, (Double, Double, Long)], r: Prediction[Double, Double]): Map[Double, (Double, Double, Long)]

    Permalink
    Definition Classes
    Aggregator
  6. def appendAll(old: Map[Double, (Double, Double, Long)], items: TraversableOnce[Prediction[Double, Double]]): Map[Double, (Double, Double, Long)]

    Permalink
    Definition Classes
    Aggregator
  7. def apply(inputs: TraversableOnce[Prediction[Double, Double]]): List[CalibrationHistogramBucket]

    Permalink
    Definition Classes
    Aggregator
  8. def applyCumulatively[In <: TraversableOnce[Prediction[Double, Double]], Out](inputs: In)(implicit bf: CanBuildFrom[In, List[CalibrationHistogramBucket], Out]): Out

    Permalink
    Definition Classes
    Aggregator
  9. def applyOption(inputs: TraversableOnce[Prediction[Double, Double]]): Option[List[CalibrationHistogramBucket]]

    Permalink
    Definition Classes
    Aggregator
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. val bucketSize: Double

    Permalink
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def composePrepare[A1](prepare2: (A1) ⇒ Prediction[Double, Double]): Aggregator[A1, Map[Double, (Double, Double, Long)], List[CalibrationHistogramBucket]]

    Permalink
    Definition Classes
    Aggregator
  14. def cumulativeIterator(inputs: Iterator[Prediction[Double, Double]]): Iterator[List[CalibrationHistogramBucket]]

    Permalink
    Definition Classes
    Aggregator
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    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)]

    Permalink
    Definition Classes
    Aggregator
  20. def lift: MonoidAggregator[Prediction[Double, Double], Option[Map[Double, (Double, Double, Long)]], Option[List[CalibrationHistogramBucket]]]

    Permalink
    Definition Classes
    Aggregator
  21. val lowerBound: Double

    Permalink

    Left boundary, inclusive

  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. val numBuckets: Int

    Permalink

    Number of buckets in the histogram

  26. def prepare(input: Prediction[Double, Double]): Map[Double, (Double, Double, Long)]

    Permalink
    Definition Classes
    CalibrationHistogram → Aggregator
  27. def present(m: Map[Double, (Double, Double, Long)]): List[CalibrationHistogramBucket]

    Permalink
    Definition Classes
    CalibrationHistogram → Aggregator
  28. def reduce(items: TraversableOnce[Map[Double, (Double, Double, Long)]]): Map[Double, (Double, Double, Long)]

    Permalink
    Definition Classes
    Aggregator
  29. def reduce(l: Map[Double, (Double, Double, Long)], r: Map[Double, (Double, Double, Long)]): Map[Double, (Double, Double, Long)]

    Permalink
    Definition Classes
    Aggregator
  30. def reduceOption(items: TraversableOnce[Map[Double, (Double, Double, Long)]]): Option[Map[Double, (Double, Double, Long)]]

    Permalink
    Definition Classes
    Aggregator
  31. def semigroup: Semigroup[Map[Double, (Double, Double, Long)]]

    Permalink
    Definition Classes
    CalibrationHistogram → Aggregator
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toFold: Fold[Prediction[Double, Double], Option[List[CalibrationHistogramBucket]]]

    Permalink
    Definition Classes
    Aggregator
  34. val upperBound: Double

    Permalink

    Right boundary, exclusive

  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @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)]

    Permalink
    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