skshapes.morphing.intrinsic_deformation.metric_validation
- skshapes.morphing.intrinsic_deformation.metric_validation(metric)
Test the validity of a callable metric.
- Parameters:
metric (
Callable
) – The metric to test.- Raises:
ValueError – If the metric has one of the following issues: - The metric does not have the expected arguments (points_sequence, velocities_sequence, edges, triangles). - The metric does not return a torch.Tensor. - The metric does not return a scalar. - The metric is not differentiable wrt the velocities.
- Return type:
None