Skip to content
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
20 changes: 9 additions & 11 deletions example_hard_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@
"First let's make sure we have the necessary packages installed. Be sure to create a virtual environment, then install the required packages for this project in it."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%pip install -e ."
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -44,7 +35,14 @@
"from engiopt import metrics\n",
"from engiopt.diffusion_2d_cond.diffusion_2d_cond import beta_schedule\n",
"from engiopt.diffusion_2d_cond.diffusion_2d_cond import DiffusionSampler\n",
"import wandb"
"import wandb\n",
"\n",
"if \"google.colab\" in str(get_ipython()):\n",
" if not os.path.exists(\"EngiOpt\"):\n",
" !git clone https://github.com/IDEALLab/EngiOpt.git\n",
" %cd EngiOpt\n",
"\n",
"%pip install -e ."
]
},
{
Expand Down Expand Up @@ -6432,7 +6430,7 @@
"source": [
"### Qualitative evaluation\n",
"\n",
"Now we can also use metrics to get a quantitative idea of how good the generated designs are. Here we compute optimality gaps between the generated designs and optimized designs in terms of objective values (thermal compliance for heatconduction)"
"Now we can also use metrics to get a quantitative idea of how good the generated designs are. Here we compute optimality gaps between the generated designs and optimized designs in terms of objective values (thermal compliance for heatconduction). We have other metrics available, see the [metrics.py](https://github.com/IDEALLab/EngiOpt/blob/main/engiopt/metrics.py) file for more details."
]
},
{
Expand Down
Loading