Skip to content

Commit

Permalink
Merge pull request #193 from Nam-dada/evoxtorch-dev-ynw
Browse files Browse the repository at this point in the history
Add link for examples
  • Loading branch information
sses7757 authored Jan 13, 2025
2 parents a1b382b + 8639f8c commit 4957c6d
Showing 1 changed file with 17 additions and 15 deletions.
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

0 comments on commit 4957c6d

Please sign in to comment.