raise_error_if_invalid#

SimilarityMetric.raise_error_if_invalid()[source]#

Raise a ValueError if dtype is not among allowed_dtypes and the latter is not an empty list.