RSVP for your your local TensorFlow Everywhere event today!

tfg.nn.loss.hausdorff_distance.evaluate

Computes the Hausdorff distance from point_set_a to point_set_b.

Note:

Hausdorff distance from point_set_a to point_set_b is defined as the maximum of all distances from a point in point_set_a to the closest point in point_set_b. It is an asymmetric metric.

Note:

This function returns the exact Hausdorff distance and not an approximation.

Note:

In the following, A1 to An are optional batch dimensions, which must be broadcast compatible.

point_set_a A tensor of shape [A1, ..., An, N, D], where the last axis represents points in a D dimensional space.
point_set_b A tensor of shape [A1, ..., An, M, D], where the last axis represents points in a D dimensional space.
name A name for this op. Defaults to "hausdorff_distance_evaluate".

A tensor of shape [A1, ..., An] storing the hausdorff distance from from point_set_a to point_set_b.

ValueError if the shape of point_set_a, point_set_b is not supported.