forked from SciML/FluxNeuralOperators.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
``` |