Skip to content

Commit

Permalink
Fix bug of APD calculation (#213)
Browse files Browse the repository at this point in the history
* update README.md

* update README.md

* update README.md

* update README.md

* update README.md

* update README.md

* update README.md

* update README.md

* update README.md

* add algorithm figures

* update README.md

* update README.md

* update README.md

* update pso figure

* update pso figure

* update rvea figure

* fix bug of APD calculation
  • Loading branch information
Zhenyu2Liang authored Feb 13, 2025
1 parent 261e007 commit 28f7ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evox/operators/selection/rvea_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def apd_fn(
"""
selected_z = torch.gather(z, 0, torch.relu(x))
left = (1 + obj.size(1) * theta * selected_z) / y[None, :]
norm_obj = torch.linalg.vector_norm(obj**2, dim=1)
norm_obj = torch.linalg.vector_norm(obj, dim=1)
right = norm_obj[x]
return left * right

Expand Down

0 comments on commit 28f7ffe

Please sign in to comment.