Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.

Commit 4e853ed

Browse files
committed
add docstring for models
1 parent 7b87328 commit 4e853ed

File tree

3 files changed

+36
-5
lines changed

3 files changed

+36
-5
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ from infinite-dimensional space (u, t) to infinite-dimensional space f(u, t).
2020
Neural operator learns a continuous function between two continuous function spaces.
2121
The kernel can be trained on different geometry, which is learned from a graph.
2222

23-
Fourier neural operator learns a neural operator with Dirichlet kernel to form a Fourier transformation.
23+
**Fourier neural operator** learns a neural operator with Dirichlet kernel to form a Fourier transformation.
2424
It performs Fourier transformation across infinite-dimensional function spaces and learns better than neural operator.
2525

26+
**Markov neural operator** learns a neural operator with Fourier operators.
27+
With only one time step information of learning, it can predict the following few steps with low loss
28+
by linking the operators into a Markov chain.
29+
2630
Currently, the `FourierOperator` layer is provided in this work.
2731
As for model, there are `FourierNeuralOperator` and `MarkovNeuralOperator` provided. Please take a glance at them [here](src/model.jl).
2832

@@ -44,7 +48,7 @@ model = Chain(
4448
)
4549
```
4650

47-
Or you can just call:
51+
Or one can just call:
4852

4953
```julia
5054
model = FourierNeuralOperator(

docs/src/index.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ The demonstration showing above is Navier-Stokes equation learned by the `Markov
1414
Example can be found in [`example/FlowOverCircle`](https://github.com/foldfelis/NeuralOperators.jl/tree/master/example/FlowOverCircle).
1515
The result is also provided [here](assets/notebook/mno.jl.html)
1616

17+
## Abstract
18+
1719
Neural operator is a novel deep learning architecture.
1820
It learns a operator, which is a mapping between infinite-dimensional function spaces.
1921
It can be used to resolve [partial differential equations (PDE)](https://en.wikipedia.org/wiki/Partial_differential_equation).
@@ -22,12 +24,16 @@ from infinite-dimensional space (u, t) to infinite-dimensional space f(u, t).
2224
Neural operator learns a continuous function between two continuous function spaces.
2325
The kernel can be trained on different geometry, which is learned from a graph.
2426

25-
Fourier neural operator learns a neural operator with Dirichlet kernel to form a Fourier transformation.
27+
**Fourier neural operator** learns a neural operator with Dirichlet kernel to form a Fourier transformation.
2628
It performs Fourier transformation across infinite-dimensional function spaces and learns better than neural operator.
2729

30+
**Markov neural operator** learns a neural operator with Fourier operators.
31+
With only one time step information of learning, it can predict the following few steps with low loss
32+
by linking the operators into a Markov chain.
33+
2834
Currently, the `FourierOperator` layer is provided in this work.
2935
As for model, there are `FourierNeuralOperator` and `MarkovNeuralOperator` provided.
30-
Please take a glance at them [here](https://github.com/foldfelis/NeuralOperators.jl/blob/master/src/model.jl).
36+
Please take a glance at them [here](apis.html#Models).
3137

3238
## Quick start
3339

@@ -55,7 +61,7 @@ model = Chain(
5561
)
5662
```
5763

58-
Or you can just call:
64+
Or one can just call:
5965

6066
```julia
6167
model = FourierNeuralOperator(

src/model.jl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@ export
22
FourierNeuralOperator,
33
MarkovNeuralOperator
44

5+
"""
6+
FourierNeuralOperator(;
7+
ch=(2, 64, 64, 64, 64, 64, 128, 1),
8+
modes=(16, ),
9+
σ=gelu
10+
)
11+
12+
Fourier neural operator learns a neural operator with Dirichlet kernel to form a Fourier transformation.
13+
It performs Fourier transformation across infinite-dimensional function spaces and learns better than neural operator.
14+
"""
515
function FourierNeuralOperator(;
616
ch=(2, 64, 64, 64, 64, 64, 128, 1),
717
modes=(16, ),
@@ -19,6 +29,17 @@ function FourierNeuralOperator(;
1929
)
2030
end
2131

32+
"""
33+
MarkovNeuralOperator(;
34+
ch=(1, 64, 64, 64, 64, 64, 1),
35+
modes=(24, 24),
36+
σ=gelu
37+
)
38+
39+
Markov neural operator learns a neural operator with Fourier operators.
40+
With only one time step information of learning, it can predict the following few steps with low loss
41+
by linking the operators into a Markov chain.
42+
"""
2243
function MarkovNeuralOperator(;
2344
ch=(1, 64, 64, 64, 64, 64, 1),
2445
modes=(24, 24),

0 commit comments

Comments
 (0)