Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PINN supervision data #13

Open
floatlazer opened this issue Nov 18, 2022 · 3 comments
Open

PINN supervision data #13

floatlazer opened this issue Nov 18, 2022 · 3 comments
Labels

Comments

@floatlazer
Copy link

Hi,

From the code it seems that PINN samples 30% of ground truth data from the solution domain and use them to supervise training. If I understand correctly, the original PINN does not require supervision data. Is this the desired behavior? I could not locate related descriptions in the paper.

ratio = int(len(dataset) * 0.3)
data_split, _ = torch.utils.data.random_split(
dataset,
[ratio, len(dataset) - ratio],
generator=torch.Generator(device="cuda").manual_seed(42),
)
data_gt = data_split[:]
bc_data = dde.icbc.PointSetBC(data_gt[0].cpu(), data_gt[1], component=0)
data = dde.data.TimePDE(
geomtime,
pde_swe2d,
[bc, ic_h, ic_u, ic_v, bc_data],
num_domain=1000,
num_boundary=1000,
num_initial=5000,
)

Thanks!

@leiterrl
Copy link
Member

Hi,

you are absolutely correct that PINNs don't necessarily need supervision data and can be thought of as a standalone PDE solver. However, we did include some observational data here since the other baseline methods are purely based on supervision and felt that this is a more fair comparison.

@floatlazer
Copy link
Author

Thank you for the reply. I may not understand the code completely. Is supervision data sampled from the entire time domain or just from the first few time steps? The first case would look less realistic since it requires knowing the complete PDE solution before hand.

@kmario23 kmario23 added the PINN label Jun 21, 2023
@finger-monkey
Copy link

Hi, do you know how to draw pdebench_examples.PNG? This is the visualization picture shown by the author on the code homepage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants