tfma.metrics.MeanAbsolutePercentageError

Calculates the mean of absolute percentage error.

Inherits From: Metric

Formula: error = 100 * abs( (label - prediction) / label )

The metric computes the mean of absolute percentage error between labels and predictions. The labels and predictions should be floats.

name The name of the metric.

compute_confidence_interval Whether to compute confidence intervals for this metric.

Note that this may not completely remove the computational overhead involved in computing a given metric. This is only respected by the jackknife confidence interval method.

Methods

computations

View source

Creates computations associated with metric.

from_config

View source

get_config

View source

Returns serializable config.