Latest

Using matplotlib to create publishable graphs

Working or sleeping, I dream of graphs - usually of rather fancy graphs on academic journals. When I think how brilliant graphs impact my feelings, I wonder about the code behind, for I am extremely tired of, and frightened by making plots by hand in Origin Lab or some other software.

2020-07-08 / 5 min read

Content Uniformity Tests Implementation Based on Monte-Carlo simulation in C++ and Python

Content uniformity tests process Implemention in C++ and Python codes. Using C++ to speed codes for 100 times.

2022-05-16 / 35 min read

Openblas vs Intel MKL for Numpy and AMD CPUs

Choose the faster library, OpenBLAS or MKL for AMD CPUs.

2022-02-25 / 4 min read

L2 regularization vs Weight decay

2021-09-14 / 2 min read

From Keras to PyTorch

This post is to record the issues I encounted during the implementation from Keras to PyTorch. At first the structure of the CNN modes is introduced. Then, the codes in Keras are shown. Next, The partial implementation in pure Pytorch is given and at last, the implementation in Pytorch Lightning is also presented.

2021-08-22 / 12 min read