pierremtb / pinns-tf2.0 Goto Github PK
View Code? Open in Web Editor NEWTensorFlow 2.0 implementation of Maziar Raissi's Physics Informed Neural Networks (PINNs).
License: MIT License
TensorFlow 2.0 implementation of Maziar Raissi's Physics Informed Neural Networks (PINNs).
License: MIT License
When I run code on colab, I always get errors when running the continuous idenfication and discrete identification modules:
KeyError Traceback (most recent call last)
in <cell line: 40>()
38 layers[-1] = q
39 pinn = PhysicsInformedNN(layers, tf_optimizer, logger, dt, lb, ub, q, IRK_alpha, IRK_beta)
---> 40 pinn.fit(x_0, u_0, x_1, u_1, tf_epochs)
41 U_0_pred, U_1_pred = pinn.predict(x_star)
42 lambda_1_pred_noisy, lambda_2_pred_noisy = pinn.get_params(numpy=True)
13 frames
/usr/local/lib/python3.10/dist-packages/keras/optimizers/optimizer.py in _update_step(self, gradient, variable)
230 return
231 if self._var_key(variable) not in self._index_dict:
--> 232 raise KeyError(
233 f"The optimizer cannot recognize variable {variable.name}. "
234 "This usually means you are trying to call the optimizer to "
KeyError: in user code:
File "/usr/local/lib/python3.10/dist-packages/keras/optimizers/optimizer.py", line 224, in _update_step_xla *
return self._update_step(gradient, variable)
File "/usr/local/lib/python3.10/dist-packages/keras/optimizers/optimizer.py", line 232, in _update_step **
raise KeyError(
KeyError: 'The optimizer cannot recognize variable dense_4/kernel:0. This usually means you are trying to call the optimizer to update different parts of the model separately. Please call `optimizer.build(variables)` with the full list of trainable variables before the training loop or use legacy optimizer `tf.keras.optimizers.legacy.Adam.'
Hello, I was running "PINNs-TF2.0/1d-burgers/inf_cont_burgers.py" and meeting a problem is 【 FileNotFoundError: [Errno 2] No such file or directory: 'latex': 'latex'】。Can you help me to solve it?
Dear Pierra
why the "burgers_shock.mat" file is required to proceed further for solving burger eq,
Is there any alternate way to proceed further.
and how burgers_shock.mat file has generated
Hay
the 1dcomplex-schrodinger does not converge to results presented in the article.
maybe there is additional commit missing?
ps. I did sanity chack by running 1d-burgers from current commit and it actually worked well in the same environment.
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.