Skip to content

Commit

Permalink
v0.11.0-examples (#108)
Browse files Browse the repository at this point in the history
* downgraded example s to julia 1.8

* removed nteract nodes
  • Loading branch information
ThummeTo authored Nov 17, 2023
1 parent e557ece commit 8a76b05
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 80 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
matrix:
os: [windows-latest] # , ubuntu-latest]
file-name: [growing_horizon_ME, modelica_conference_2021, simple_hybrid_CS, simple_hybrid_ME, mdpi_2022, juliacon_2023]
julia-version: ['1.9']
julia-version: ['1.8']
julia-arch: [x64]
experimental: [false]

Expand All @@ -44,7 +44,7 @@ jobs:
env:
FILE: examples/src/${{ matrix.file-name }}.ipynb
run: |
jupyter nbconvert --ExecutePreprocessor.kernel_name="julia-1.9" --to notebook --inplace --execute ${{ env.FILE }}
jupyter nbconvert --ExecutePreprocessor.kernel_name="julia-1.8" --to notebook --inplace --execute ${{ env.FILE }}
jupyter nbconvert --to script ${{ env.FILE }}
jupyter nbconvert --to markdown ${{ env.FILE }}
Expand Down
3 changes: 1 addition & 2 deletions docs/src/examples/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ The examples show how to combine FMUs with machine learning ("NeuralFMU") and il

## Advanced examples: Demo applications
- [__JuliaCon 2023: Using NeuralODEs in real life applications__](https://thummeto.github.io/FMIFlux.jl/dev/examples/juliacon_2023/): An example for a NeuralODE in a real world engineering scenario.
- [__MDPI 2022: Physics-enhanced NeuralODEs in real-world applications__](https://thummeto.github.io/FMIFlux.jl/dev/examples/mdpi_2022/): An example for a NeuralODE in a real world modeling scenario (Contribution in *MDPI Electronics 2022*).
- [__Modelica Conference 2021: NeuralFMUs__](https://thummeto.github.io/FMIFlux.jl/dev/examples/modelica_conference_2021/): Showing basics on how to train a NeuralFMU (Contribution for the *Modelica Conference 2021*).

## Archived
- ...
- [__MDPI 2022: Physics-enhanced NeuralODEs in real-world applications__](https://thummeto.github.io/FMIFlux.jl/dev/examples/mdpi_2022/): An example for a NeuralODE in a real world modeling scenario (Contribution in *MDPI Electronics 2022*).
20 changes: 5 additions & 15 deletions examples/src/growing_horizon_ME.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {
"execution": {
"iopub.execute_input": "2022-10-14T15:20:31.245000Z",
Expand Down Expand Up @@ -81,7 +81,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {
"execution": {
"iopub.execute_input": "2022-10-14T15:20:31.534000Z",
Expand Down Expand Up @@ -676,13 +676,6 @@
},
{
"cell_type": "markdown",
"metadata": {
"nteract": {
"transient": {
"deleting": false
}
}
},
"source": [
"Finally, the FMU is cleaned-up."
]
Expand Down Expand Up @@ -734,18 +727,15 @@
"notebook_metadata_filter": "-all"
},
"kernelspec": {
"display_name": "Julia 1.9.3",
"display_name": "Julia 1.8.5",
"language": "julia",
"name": "julia-1.9"
"name": "julia-1.8"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.9.3"
},
"nteract": {
"version": "0.28.0"
"version": "1.8.5"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions examples/src/juliacon_2023.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -971,15 +971,15 @@
],
"metadata": {
"kernelspec": {
"display_name": "Julia 1.9.3",
"display_name": "Julia 1.8.5",
"language": "julia",
"name": "julia-1.9"
"name": "julia-1.8"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.9.3"
"version": "1.8.5"
},
"orig_nbformat": 4
},
Expand Down
23 changes: 4 additions & 19 deletions examples/src/mdpi_2022.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -618,13 +618,6 @@
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"nteract": {
"transient": {
"deleting": false
}
}
},
"source": [
"The batch loss (\"AVG\" and \"MAX\") is only updated every 5 steps, as defined in the scheduler. Every 25 steps, we plot the current batch element losses. Please note, that we only did around 100 training steps, so training has not converged for now. But we are curious and want to have a look on the intermediate results. \n",
"\n",
Expand Down Expand Up @@ -666,7 +659,7 @@
},
{
"cell_type": "code",
"execution_count": 31,
"execution_count": null,
"metadata": {
"execution": {
"iopub.execute_input": "2023-01-12T18:29:26.917Z",
Expand Down Expand Up @@ -718,11 +711,6 @@
"jupyter": {
"outputs_hidden": false,
"source_hidden": false
},
"nteract": {
"transient": {
"deleting": false
}
}
},
"outputs": [],
Expand Down Expand Up @@ -756,18 +744,15 @@
"notebook_metadata_filter": "-all"
},
"kernelspec": {
"display_name": "Julia 1.9.3",
"display_name": "Julia 1.8.5",
"language": "julia",
"name": "julia-1.9"
"name": "julia-1.8"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.9.3"
},
"nteract": {
"version": "0.28.0"
"version": "1.8.5"
}
},
"nbformat": 4,
Expand Down
16 changes: 3 additions & 13 deletions examples/src/modelica_conference_2021.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -979,13 +979,6 @@
},
{
"cell_type": "markdown",
"metadata": {
"nteract": {
"transient": {
"deleting": false
}
}
},
"source": [
"Finally, the FMU is cleaned-up."
]
Expand Down Expand Up @@ -1036,18 +1029,15 @@
"notebook_metadata_filter": "-all"
},
"kernelspec": {
"display_name": "Julia 1.9.3",
"display_name": "Julia 1.8.5",
"language": "julia",
"name": "julia-1.9"
"name": "julia-1.8"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.9.3"
},
"nteract": {
"version": "0.28.0"
"version": "1.8.5"
}
},
"nbformat": 4,
Expand Down
16 changes: 3 additions & 13 deletions examples/src/simple_hybrid_CS.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -574,13 +574,6 @@
},
{
"cell_type": "markdown",
"metadata": {
"nteract": {
"transient": {
"deleting": false
}
}
},
"source": [
"Finally, the FMU is cleaned-up."
]
Expand Down Expand Up @@ -632,18 +625,15 @@
"notebook_metadata_filter": "-all"
},
"kernelspec": {
"display_name": "Julia 1.9.3",
"display_name": "Julia 1.8.5",
"language": "julia",
"name": "julia-1.9"
"name": "julia-1.8"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.9.3"
},
"nteract": {
"version": "0.28.0"
"version": "1.8.5"
}
},
"nbformat": 4,
Expand Down
16 changes: 3 additions & 13 deletions examples/src/simple_hybrid_ME.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -572,13 +572,6 @@
},
{
"cell_type": "markdown",
"metadata": {
"nteract": {
"transient": {
"deleting": false
}
}
},
"source": [
"Finally, the FMU is cleaned-up."
]
Expand Down Expand Up @@ -629,18 +622,15 @@
"notebook_metadata_filter": "-all"
},
"kernelspec": {
"display_name": "Julia 1.9.3",
"display_name": "Julia 1.8.5",
"language": "julia",
"name": "julia-1.9"
"name": "julia-1.8"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.9.3"
},
"nteract": {
"version": "0.28.0"
"version": "1.8.5"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 8a76b05

Please sign in to comment.