Skip to content

Commit

Permalink
readme for DoublePendulum
Browse files Browse the repository at this point in the history
  • Loading branch information
foldfelis committed Sep 12, 2021
1 parent fea3108 commit 525bd68
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,13 @@ Flux.@epochs 50 Flux.train!(loss, params(model), data, opt)

PDE training examples are provided in `example` folder.

### One-dimensional Fourier neural operator
### One-dimensional Fourier Neural Operator

[Burgers' equation](example/Burgers)

### Two-dimensional with time Navier-Stokes equation
### Two-dimensional Fourier Neural Operator

[Double Pendulum](example/DoublePendulum)

### Markov Neural Operator

Expand Down
20 changes: 20 additions & 0 deletions example/DoublePendulum/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Double pendulum

A [double pendulum](https://www.wikiwand.com/en/Double_pendulum) is a pendulum with another pendulum attached to its end.
In is example, instead of learning from a well-described equation of motion,
we train the model with the famous dataset provided by IBM.
The equation of motion to the real experiments of double pendulum is learned by a two-dimensional Fourier neural operator.
It learns to inference the next 30 steps with the given first 30 steps.
The result of this example can be found [here](https://foldfelis.github.io/NeuralOperators.jl/dev/assets/notebook/double_pendulum.jl.html).

![](gallery/result.gif)

By inference the result recurrently, we can generate up to 150 steps with the first 30 initial steps.

Change directory to `example/DoublePendulum` and use following commend to train model:

```julia
$ julia --proj

julia> using DoublePendulum; DoublePendulum.train()
```

0 comments on commit 525bd68

Please sign in to comment.