Mini batch training of collocation points? #744
Replies: 2 comments 3 replies
-
For any PDE, the number inside the domain for PDE loss is always orders of magnitude larger than the number of points in the boundary, right? If the problem has a lot of BC points, then the PDE points should be even more. So the PDE point is always dominant. You can simply do a downsampling for the BC points, unless I misunderstand your problem. On the other hand, you can also check PointCloud |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
My question is how to do minibatch training with deepxde using point set boundary conditions?
I noticed in issue #320 that it is possible to use
PDEResidualResampler
to sample new PDE training points on each epoch. However, this is not sufficient for my use case. I am solving an inverse problem where the boundary conditions are defined by a large multidimensional displacement image (hundreds of thousands of vector-valued data points). I provide these to deepxde as aPointSetBC
which works just fine for smaller problems, but I run out of memory when scaling up to the full problem.I need a way to train using minibatches that resample not just the PDE residual points, but the boundary condition collocation points as well. Is this possible currently or do I need to implement a new trainer?
Beta Was this translation helpful? Give feedback.
All reactions