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
- Alphabetic
- By Inheritance
Inherited
- CalibrationHistogram
- 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: (List[CalibrationHistogramBucket]) ⇒ D): Aggregator[Prediction[Double, Double], Map[Double, (Double, Double, Long)], D]
- Definition Classes
- Aggregator
-
def
append(l: Map[Double, (Double, Double, Long)], r: Prediction[Double, Double]): Map[Double, (Double, Double, Long)]
- Definition Classes
- Aggregator
-
def
appendAll(old: Map[Double, (Double, Double, Long)], items: TraversableOnce[Prediction[Double, Double]]): Map[Double, (Double, Double, Long)]
- Definition Classes
- Aggregator
-
def
apply(inputs: TraversableOnce[Prediction[Double, Double]]): List[CalibrationHistogramBucket]
- Definition Classes
- Aggregator
-
def
applyCumulatively[In <: TraversableOnce[Prediction[Double, Double]], Out](inputs: In)(implicit bf: CanBuildFrom[In, List[CalibrationHistogramBucket], Out]): Out
- Definition Classes
- Aggregator
-
def
applyOption(inputs: TraversableOnce[Prediction[Double, Double]]): Option[List[CalibrationHistogramBucket]]
- Definition Classes
- Aggregator
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bucketSize: Double
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
composePrepare[A1](prepare2: (A1) ⇒ Prediction[Double, Double]): Aggregator[A1, Map[Double, (Double, Double, Long)], List[CalibrationHistogramBucket]]
- Definition Classes
- Aggregator
-
def
cumulativeIterator(inputs: Iterator[Prediction[Double, Double]]): Iterator[List[CalibrationHistogramBucket]]
- 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[Double, Double], B2, C2](that: Aggregator[A2, B2, C2]): Aggregator[A2, (Map[Double, (Double, Double, Long)], B2), (List[CalibrationHistogramBucket], C2)]
- Definition Classes
- Aggregator
-
def
lift: MonoidAggregator[Prediction[Double, Double], Option[Map[Double, (Double, Double, Long)]], Option[List[CalibrationHistogramBucket]]]
- Definition Classes
- Aggregator
- val lowerBound: Double
-
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()
- val numBuckets: Int
-
def
prepare(input: Prediction[Double, Double]): Map[Double, (Double, Double, Long)]
- Definition Classes
- CalibrationHistogram → Aggregator
-
def
present(m: Map[Double, (Double, Double, Long)]): List[CalibrationHistogramBucket]
- Definition Classes
- CalibrationHistogram → Aggregator
-
def
reduce(items: TraversableOnce[Map[Double, (Double, Double, Long)]]): Map[Double, (Double, Double, Long)]
- Definition Classes
- Aggregator
-
def
reduce(l: Map[Double, (Double, Double, Long)], r: Map[Double, (Double, Double, Long)]): Map[Double, (Double, Double, Long)]
- Definition Classes
- Aggregator
-
def
reduceOption(items: TraversableOnce[Map[Double, (Double, Double, Long)]]): Option[Map[Double, (Double, Double, Long)]]
- Definition Classes
- Aggregator
-
def
semigroup: Semigroup[Map[Double, (Double, Double, Long)]]
- Definition Classes
- CalibrationHistogram → Aggregator
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toFold: Fold[Prediction[Double, Double], Option[List[CalibrationHistogramBucket]]]
- Definition Classes
- Aggregator
- val upperBound: Double
-
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[Double, Double], A2), (Map[Double, (Double, Double, Long)], B2), (List[CalibrationHistogramBucket], C2)]
- Definition Classes
- Aggregator