You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scipy.spatial.distance.hamming distance metric returns 1.0 for unequal strings but returns the expected values if strings are converted to lists beforehand.
The following code shows the output generated by the current version of scipy. Note the difference between the distance which is expected to be 0.25 for the chosen strings.