If someone gives you a Docker image as a tarball, i.e., the output of docker save, and if you want to find a file that…
Category: Programming and Simulations
I never thought one day I would want to write a post regarding calculating cotangent with NumPy in Python. Isn’t cotangent just the inverse of…
I recently found a lot of third-party libraries that help send desktop notifications in Linux. I just don’t get it. Most of these libraries just…
Summary: This post showcases a workaround to optimize a tf.keras.Model model with a TensorFlow-based L-BFGS optimizer from TensorFlow Probability. The complete code can be found…
tf.keras.callbacks.EarlyStopping is used to terminate a training if a monitored quantity satisfies some criterion. For example, in the following code snippet, the training will stop…
I wrote this blog post to remind myself of something. When evaluating the order of convergence of numerical simulation results, we either use infinity norm…
Note: The content in this post was done with the GPU version of TensorFlow 2.0. I need float64 for my models. However, not until recently I…
Disclaimer: I use the Keras interface from TensorFlow 2.0.0-rc1, so I’m not sure if the content applies to the original Keras library or other versions…
Disclaimer: I only use the GPU version of TensorFlow v2.0.0-rc1, so I don’t know if this works with other versions. When writing the TensorFlow code…
Recently I got a chance to be in a room with a bunch of Ph.D. students and faculties of the mechanical engineering department. Faculties were…