Chadrick's Blog

  • Posts

July 2019

python

combine error message and tracestack into one string in python Exception

By chadrick_author, 4 years ago
deep learning

how to manually write to tensorboard from tf.keras callback (useful trick when writing a handful of validation metrics at once)

tf.keras does support Metric classes which can evaludate metrics at each batch. However, it does have a limitation that it can only calculat on training data and it can only output only one value. This becomes a problem especially in cases such as when the user does validation evaluation and Read more…

By chadrick_author, 4 years ago
tensorflow

tf.where examples and its behavior

Before going into tf.where example, a proper way to implement equal comparison in tensorflow will be demonstrated since equal comparison will be used as the condition of the tf.where. Equal Comparison in Tensorflow output: to fix this, do not use python native operands such as == in the above. instead Read more…

By chadrick_author, 4 years4 years ago
deep learning

strictly match cuda version when installing cudnn

I was naive to think that a cudnn version built for CUDA 10.1 will work with CUDA 10.0 installed in my machine. This mismatch will not produce any explicit error messages when building and training a tensorflow model. However, I notices that the loss does not reduce even after a Read more…

By admin, 4 years ago
python

json dumping(serializing) custom python classes

One of the greatest features of Python is that native types are naturally JSON serializable which makes it exporting/importing json files so easy and convenient without any hassle. However, once the user starts to create their own classes and confronts the situation to dump them as a part of a Read more…

By admin, 4 years4 years ago
Recent Posts
  • fix blank plot when using plotly in jupyter lab
  • pylance stuck on “Searching for source files”
  • paper review: “Graph Attention Networks”
  • fix “Certificate verification failed” error in apt update of docker container
  • fixing “Could not handshake: An unexpected TLS packet was received” error while apt update in docker container behind corporate proxy
Categories
  • algorithm
  • c/c++
  • cuda
  • data science
  • deep learning
  • error fix
  • kicad
  • kotlin
  • linux
  • postgres
  • python
  • pytorch
  • tensorflow
  • Uncategorized
  • web
Recent Comments
  • Andrew Mellinger on python implementation of rotating caliper algorithm
  • minhln14 on get rotation angle between two vectors
  • Anonymous on fix ‘certificate apiserver-kubelet-client not signed by CA certificate ca: crypto/rsa: verification error’ error during minikube start
  • Kartik on fix ‘certificate apiserver-kubelet-client not signed by CA certificate ca: crypto/rsa: verification error’ error during minikube start
  • radu on ssh local port forwarding and error fix for “channel 3: open failed: connect failed: Connection refused”
Archives
  • September 2022
  • July 2022
  • June 2022
  • May 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
Meta
  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • Posts
Hestia | Developed by ThemeIsle