Module: tfm.uplift.metrics

Metrics package definition.

Modules

label_mean module: Keras metric for computing the label mean sliced by treatment group.

label_variance module: Keras metric for computing the label variance sliced by treatment group.

loss_metric module: Keras metric for computing a loss sliced by treatment group.

metric_configs module: Metric configurations for TF Model Garden.

poisson_metrics module: Poisson regression metrics.

sliced_metric module: Keras metric for reporting metrics sliced by a feature.

treatment_fraction module: Keras metric for computing fraction of treated examples.

treatment_sliced_metric module: Keras metric for computing sliced metric values based on treatment group.

uplift_mean module: Keras metric for computing the mean uplift sliced by treatment group.

variance module: Keras metric for computing the (weighted) variance of a tensor.