tfma.metrics.MeanSquaredError

Calculates the mean of squared error between labels and predictions.

Inherits From: Metric

Formula: error = L2_norm(label - prediction)**2

The metric computes the mean of squared error (square of L2 norm) between labels and predictions. The labels and predictions could be arrays of arbitrary dimensions. Their dimension should match.

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.