Article

Inverting an array with pytorch I’ve been working with pytorch more and more lately for NLP, and I’d like to write down some things I want to keep in mind. github The file in jupyter notebook format is here google colaboratory To run it in google colaboratory here Author’s environment The author’s OS is macOS, and the options are different from Linux and Unix commands.
matplotlib template for a graph for a paper Here is my personal template for writing graphs for papers in matplotlib. github The file in jupyter notebook format on github is here . google colaboratory If you want to run it in google colaboratory here Author’s environment sw_vers ProductName: Mac OS X ProductVersion: 10.14.6 BuildVersion: 18G9323 Python -V Python 3.8.5 %matplotlib inline %config InlineBackend.figure_format = 'svg' import time import json import numpy as np import pandas as pd import matplotlib.
Unpack and assign dictionary type arguments When assigning a large number of arguments at once, it is very convenient to unpack and assign dictionary type arguments. I’ll write it down so I don’t forget. github The file in jupyter notebook format on github is here . google colaboratory If you want to run it on google colaboratory here Author’s environment sw_vers ProductName: Mac OS X ProductVersion: 10.
Python Tips I’ll leave some personal notes on useful notations when using python. github The file in jupyter notebook format on github is here . google colaboratory To run it in google colaboratory here Author’s environment sw_vers ProductName: Mac OS X ProductName: Mac OS X ProductVersion: 10.14.6 BuildVersion: 18G103 Python -V Python 3.8.5 %matplotlib inline %config InlineBackend.figure_format = 'svg' import time import json import matplotlib.
Python Tips This is my personal memo about useful notations in python. I have not touched on the basics. It is limited to what I find useful. github The jupyter notebook format file on github is here google colaboratory To run it on google colaboratory here Author’s environment ! sw_vers ProductName: Mac OS X ProductVersion: 10.14.6 BuildVersion: 18G95 Python -V Python 3.5.5 :: Anaconda, Inc.
Python Tips When I was doing data analysis, I had a chance to use Venn diagrams to visualize the data, so I’m writing this down so I don’t forget. The Venn diagram is a handy tool for visualizing the relationships between datasets, such as duplicates, and is useful in the EDA stage. github The jupyter notebook format file on github is here . google colaboratory If you want to run it on google colaboratory here Author’s environment sw_vers ProductName: Mac OS X ProductVersion: 10.
Cause I had a chance to use a GPU environment on a shared server, but I couldn’t use sudo and had a hard time using basic git and vim, so I wrote it down. It’s hard to implement various source codes on the server without git and vim (vi is included), so I’ll try to get them into the local environment. Environment wget, gcc are included. uname -a Linux ubuntu 5.
environment uname -a Linux 4.19.0-18-cloud-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64 GNU/Linux Take over variables To share a directory name between python and bash, you can enclose it in {}. outdir = './out/' Create a directory in bash. ! mkdir -p {outdir} ! echo {outdir} ./out/ The variable was retrieved. Congratulations!
Unable to load jupyter notebook kernel You can easily change the virtual environment in jupyter notebook, but I couldn’t switch the environment well this time, so I’ll write it down. github The file in jupyter notebook format on github is here . google colaboratory If you want to run it on google colaboratory here 015/015_nb.ipynb) Author’s environment !sw_vers ProductName: Mac OS X ProductVersion: 10.14.6 BuildVersion: 18G9323 !
Cost I recently used GCP’s Document AI and was surprised by the cost, so I wrote it down. cost Form parser was 50 times more expensive than Document OCR; I thought Form parser was about the same as CloudVision, but it was almost 50 times more expensive and the bill was outrageous. If you are one of those people, you might want to be careful.