Missed TensorFlow World? Check out the recap. Learn more

Module: tfp.stats

View source on GitHub

Statistical functions.

Functions

auto_correlation(...): Auto correlation along one axis.

brier_decomposition(...): Decompose the Brier score into uncertainty, resolution, and reliability.

brier_score(...): Compute Brier score for a probabilistic prediction.

cholesky_covariance(...): Cholesky factor of the covariance matrix of vector-variate random samples.

correlation(...): Sample correlation (Pearson) between observations indexed by event_axis.

count_integers(...): Counts the number of occurrences of each value in an integer array arr.

covariance(...): Sample covariance between observations indexed by event_axis.

expected_calibration_error(...): Compute the Expected Calibration Error (ECE).

find_bins(...): Bin values into discrete intervals.

histogram(...): Count how often x falls in intervals defined by edges.

log_average_probs(...): Computes log(average(to_probs(logits))) in a numerically stable manner.

log_loomean_exp(...): Computes the log-leave-one-out-mean of exp(logx).

log_loosum_exp(...): Computes the log-leave-one-out-sum of exp(logx).

log_soomean_exp(...): Computes the log-swap-one-out-mean of exp(logx).

log_soosum_exp(...): Computes the log-swap-one-out-sum of exp(logx).

percentile(...): Compute the q-th percentile(s) of x.

quantiles(...): Compute quantiles of x along axis.

stddev(...): Estimate standard deviation using samples.

variance(...): Estimate variance using samples.