Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jdtuck committed Dec 19, 2023
1 parent 7755d85 commit fcebf9b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fdasrsf/umap_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ def warp_rbfgs(q1, q2):

hCurGradNorm = norm2(hCurGradient)

lsstats = {"costevals": 0, "stepsize": 0.0, "alpha": 0.0}
costevals = 0
stepsize = 0.0
alpha = 0.0

ultimatum = False

Expand Down Expand Up @@ -308,6 +310,9 @@ def warp_rbfgs(q1, q2):
htilde = group_action_SRVF(htilde, hNext)
q2tilde = group_action_SRVF(q2tilde, hNext)

stepsize = lsstats['stepsize']
alpha = lsstats['alpha']

alpha = stepsize / norm2(p)
step = alpha * p

Expand Down

0 comments on commit fcebf9b

Please sign in to comment.