Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ThummeTo committed Sep 11, 2024
1 parent 44d09fa commit 9781726
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions examples/jupyter-src/modelica_conference_2021.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count": 129,
"execution_count": 1,
"metadata": {
"execution": {
"iopub.execute_input": "2022-10-14T15:30:08.475000Z",
Expand Down Expand Up @@ -88,7 +88,7 @@
},
{
"cell_type": "code",
"execution_count": 130,
"execution_count": 2,
"metadata": {
"execution": {
"iopub.execute_input": "2022-10-14T15:30:08.740000Z",
Expand Down Expand Up @@ -656,7 +656,7 @@
"\n",
" display(fig)\n",
" \n",
" return forces \n",
" return nothing\n",
"end"
]
},
Expand Down Expand Up @@ -755,7 +755,7 @@
},
{
"cell_type": "code",
"execution_count": 147,
"execution_count": 19,
"metadata": {
"execution": {
"iopub.execute_input": "2022-10-14T15:33:56.111000Z",
Expand Down Expand Up @@ -808,7 +808,7 @@
},
{
"cell_type": "code",
"execution_count": 149,
"execution_count": 21,
"metadata": {
"execution": {
"iopub.execute_input": "2022-10-14T15:34:29.265000Z",
Expand Down Expand Up @@ -864,7 +864,7 @@
},
{
"cell_type": "code",
"execution_count": 151,
"execution_count": 23,
"metadata": {
"execution": {
"iopub.execute_input": "2022-10-14T15:35:11.153000Z",
Expand Down Expand Up @@ -909,6 +909,9 @@
"outputs": [],
"source": [
"for run in 1:numRuns\n",
"\n",
" global forces\n",
" \n",
" optim = Adam(10.0^(-3+1-run)) # going from 1e-3 to 1e-4\n",
"\n",
" @time for epoch in 1:numEpochs\n",
Expand All @@ -929,7 +932,7 @@
" netBottom = Chain(layersBottom...)\n",
" transferFlatParams!(netBottom, paramsNet, 7)\n",
" \n",
" forces = plot_friction_model(realSimData, netBottom, forces) \n",
" plot_friction_model(realSimData, netBottom, forces) \n",
" \n",
" # displacement model extraction\n",
" layersTop = neuralFMU.model.layers[1:1]\n",
Expand All @@ -949,7 +952,7 @@
},
{
"cell_type": "code",
"execution_count": 153,
"execution_count": 25,
"metadata": {
"execution": {
"iopub.execute_input": "2022-10-14T15:39:38.848000Z",
Expand Down

0 comments on commit 9781726

Please sign in to comment.