Chadrick's Blog

  • Posts

May 2019

tensorflow

saving and loading only architecture of tf.keras model

One can export only the model’s architecture information as JSON file like the following. To load this back to model, here is a sample code

By admin, 4 years4 years ago
error fix

easy fix for bash script file unexpected end of file error

open with vi, and execute :set fileformat=unix and save the file. referred from here.

By chadrick_author, 4 years ago
python

adding same handler to all loggers at once in main script

By chadrick_author, 4 years ago
python

Accessing NVIDIA gpu info from python

Here is an example code and its output. I think it is easy to expand from here. And the output: This was coded with python 3.6.6 and the packge used was the this one: https://pypi.org/project/nvidia-ml-py3/

By admin, 4 years ago
error fix

encountering “ModuleNotFoundError: No module named ‘_posixsubprocess'” error when running nvsysinfo

even confirming nvsysinfo is installed through apt, running nvsysinfo with sudo or even in root account produces the following error. I tried reinstalling subprocess32module but it did not fix the problem. However, checking out the nvsysinfo exec file which is a bash script file that practically launched a nvsysinfo.py file Read more…

By chadrick_author, 4 years ago
linux

git hard reset on subdirectory of git repo

ref: https://stackoverflow.com/questions/15404535/how-to-git-reset-hard-a-subdirectory

By chadrick_author, 4 years4 years ago
data science

running jupyter notebook allowing external access and no authentication

learned from https://stackoverflow.com/questions/41159797/how-to-disable-password-request-for-a-jupyter-notebook-session

By chadrick_author, 4 years4 years ago
web

making updated permalink work in wordpress with nginx

After I changed my permalink type to use postname and applied the changes, accessing posts gave me a 404 while the wordpress site was running perfectly fine. The problem was due to the fact that I was using nginx. If I was using apache, I would have had the changes Read more…

By admin, 4 years ago
data science

multi-class logistic regression and auc-roc example

By admin, 4 years4 years ago
data science

selecting rows based on timedelta values

Assume we have a series that contains time difference values. Let’s find rows which have time difference more than an hour. According to the pandas documentation, the pandas timedelta is actually using the python’s datetime module’s timedelta. For first make a datetime.timedelta object that contains a value of one hour Read more…

By admin, 4 years4 years ago

Posts navigation

1 2 Next
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