Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deepdiff/distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def numpy_apply_log_keep_sign(array, offset=MATH_LOG_OFFSET):
return signed_log_values


def logarithmic_similarity(a: NumberType, b: NumberType, threshold: float=0.1) -> float:
def logarithmic_similarity(a: NumberType, b: NumberType, threshold: float=0.1) -> bool:
"""
A threshold of 0.1 translates to about 10.5% difference.
A threshold of 0.5 translates to about 65% difference.
Expand Down