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

Training set and seed #353

Closed
jungaloo opened this issue Aug 7, 2021 · 2 comments
Closed

Training set and seed #353

jungaloo opened this issue Aug 7, 2021 · 2 comments

Comments

@jungaloo
Copy link

jungaloo commented Aug 7, 2021

Hi,

I'm playing around with Poisson_Lshape.py and I was wondering where and how is computed the training set?
Also, I'm trying to set the seed, the way the points are scattered around in the geometry, so I can try and compute a L2 error or at least reproduce the results, but I'm not sure where to look.

Thank you for the help.

@lululxvi
Copy link
Owner

The training data will be saved in the file train.dat

You should set the seed of both numpy and tensorflow. If you really want to control the sampled points, you can set num_domain and num_boundary to be 0, so that DeepXDE won't sample any points. Then you sample the points by your self, and pass it to anchors, so that DeepXDE will only use these points.

@lululxvi
Copy link
Owner

Set random seed has been supported by deepxde.config.set_random_seed().

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

No branches or pull requests

2 participants