Codes for B-PINN using Langevin sampling
top-level code: mainsolve2.py; data file: Sample_ODE_data_4.npy (for 2nd order PDE), Sample_ODE2_data_.npy (for 1st order PDE); data generation code: Sample_data_gen.py; Langevin/GD update code: Lang_sampler.py; NN structure code: NN_struc.py;
Package requirements: pytorch (1.12.1); numpy (1.19.2); matplotlib (3.3.2)