Skip to content

Commit

Permalink
Update delta.py
Browse files Browse the repository at this point in the history
  • Loading branch information
leymir authored Jan 12, 2022
1 parent 9e84d35 commit 6633edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyptorch/delta.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def batched_delta_hyp(X, n_tries=10, batch_size=1500):
X_batch = X[idx]
distmat = distance_matrix(X_batch, X_batch)
diam = np.max(distmat)
delta_rel = delta_hyp(distmat) / diam
delta_rel = 2 * delta_hyp(distmat) / diam
vals.append(delta_rel)
return np.mean(vals), np.std(vals)

Expand Down

0 comments on commit 6633edb

Please sign in to comment.