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
def minkowski_distance_gradient(u, v):
# u,v in hyperboloid
# returns gradient with respect to u
return -1*(hyperboloid_dot(u,v) ** 2 - 1) ** -1/2 * v
should be changed into
def minkowski_distance_gradient(u, v):
# u,v in hyperboloid
# returns gradient with respect to u
return -1*(hyperboloid_dot(u,v) ** 2 - 1) ** (-1/2) * v
However, I cannot obtain clustering results when I changed the above function.
The text was updated successfully, but these errors were encountered:
I think
def minkowski_distance_gradient(u, v):
# u,v in hyperboloid
# returns gradient with respect to u
return -1*(hyperboloid_dot(u,v) ** 2 - 1) ** -1/2 * v
should be changed into
def minkowski_distance_gradient(u, v):
# u,v in hyperboloid
# returns gradient with respect to u
return -1*(hyperboloid_dot(u,v) ** 2 - 1) ** (-1/2) * v
However, I cannot obtain clustering results when I changed the above function.
The text was updated successfully, but these errors were encountered: