tfg.nn.loss.hausdorff_distance.evaluate
Stay organized with collections
Save and categorize content based on your preferences.
Computes the Hausdorff distance from point_set_a to point_set_b.
tfg.nn.loss.hausdorff_distance.evaluate(
point_set_a: type_alias.TensorLike,
point_set_b: type_alias.TensorLike,
name: str = 'hausdorff_distance_evaluate'
) -> tf.Tensor
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.
|
Args |
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".
|
Returns |
A tensor of shape [A1, ..., An] storing the hausdorff distance from
from point_set_a to point_set_b.
|
Raises |
ValueError
|
if the shape of point_set_a , point_set_b is not supported.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-10-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-10-28 UTC."],[],[]]