Skip to content

Commit 6a67e93

Browse files
committed
💡 expand docstring
1 parent 0be459b commit 6a67e93

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://pzimbrod.github.io/NeuralOperator.jl/stable)
55
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://pzimbrod.github.io/NeuralOperator.jl/dev)
6-
[![Build Status](https://github.com/pzimbrod/NeuralOperator.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/pzimbrod/NeuralOperator.jl/actions/workflows/CI.yml?query=branch%3Amain)
6+
[![Build Status](https://github.com/pzimbrod/NeuralOperator.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/pzimbrod/NeuralOperator.jl/actions/workflows/CI.yml)
77

88
A `Julia` implementation of the Fourier Neural Operator conceived by [Zongyi et al.](https://arxiv.org/abs/2010.08895)
99
using (mainly) [Flux.jl](https://github.com/FluxML/Flux.jl) and [FFTW.jl](https://github.com/JuliaMath/FFTW.jl).

‎src/FourierLayer.jl‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ The data consists of 200 instances of the solution.
2626
Beforehand we convert the inputs into a higher-dimensional latent space with 128 nodes by using a regular `Dense` layer.
2727
So the input takes the dimension `128 x 64 x 200`.
2828
The output would be the diffused variable at a later time, which initially makes the output of the form `128 x 64 x 200` as well. Finally, we have to squeeze this high-dimensional ouptut into the one quantity of interest again by using a `Dense` layer.
29+
30+
We wish to only keep the first 16 modes of the input and work with the classic sigmoid function as activation.
31+
2932
So we would have:
3033
3134
```julia
32-
model = FourierLayer(2, 2, 200, 100, 16, σ)
35+
model = FourierLayer(128, 128, 200, 100, 16, σ)
3336
```
3437
"""
3538
struct FourierLayer{F,Tc<:Complex{<:AbstractFloat},Tr<:AbstractFloat,Bf,Bl}

0 commit comments

Comments
 (0)