PDEPointResampler#
- class pinnx.callbacks.PDEPointResampler(period=100, pde_points=True, bc_points=False)[source]#
Resample the training points for PDE and/or BC losses every given period.
- Parameters:
period – How often to resample the training points (default is 100 iterations).
pde_points – If True, resample the training points for PDE losses (default is True).
bc_points – If True, resample the training points for BC losses (default is False; only supported by PyTorch and PaddlePaddle backend currently).