Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add link. #193

Merged
merged 2 commits into from
Jan 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions docs/source/example/moalg.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -40,7 +40,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand All @@ -62,12 +62,12 @@
"metadata": {},
"source": [
"## Running example: RVEA on DTLZ2 problem\n",
"The following code is used to set up the DTLZ2 problem and the RVEA algorithm. More information about the problem and algorithm can be found in the corresponding section of the documentation."
"The following code is used to set up the [`DTLZ2`](#evox.problems.numerical.dtlz) problem and the [`RVEA`](#evox.algorithms.mo.rvea) algorithm. More information about the problem and algorithm can be found in the corresponding section of the documentation."
]
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 17,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -89,23 +89,25 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 18,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"tensor(0.4746, device='cuda:0')\n",
"tensor(0.1650, device='cuda:0')\n",
"tensor(0.0902, device='cuda:0')\n",
"tensor(0.0653, device='cuda:0')\n",
"tensor(0.0586, device='cuda:0')\n",
"tensor(0.0564, device='cuda:0')\n",
"tensor(0.0559, device='cuda:0')\n",
"tensor(0.0551, device='cuda:0')\n",
"tensor(0.4481, device='cuda:0')\n",
"tensor(0.1465, device='cuda:0')\n",
"tensor(0.0854, device='cuda:0')\n",
"tensor(0.0647, device='cuda:0')\n",
"tensor(0.0592, device='cuda:0')\n",
"tensor(0.0574, device='cuda:0')\n",
"tensor(0.0562, device='cuda:0')\n",
"tensor(0.0553, device='cuda:0')\n",
"tensor(0.0550, device='cuda:0')\n",
"tensor(0.0546, device='cuda:0')\n",
"tensor(0.0544, device='cuda:0')\n"
"tensor(0.0544, device='cuda:0')\n",
"tensor(0.0543, device='cuda:0')\n"
]
}
],
Expand All @@ -117,7 +119,7 @@
" workflow.step()\n",
" fit = workflow.algorithm.fit\n",
" fit = fit[~torch.isnan(fit).any(dim=1)]\n",
" if i % 10 == 0:\n",
" if i % 9 == 0:\n",
" print(igd(fit, pf))"
]
},
Expand Down
Loading