Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on PlantUML

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

PlantUML

PlantUML is a great text to UML tool. It can be used to create flowcharts too.

You can try it online at PlantText . You can download the the reference guide …

Tips on dbeaver

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

General Tips

  1. Standalone dbeaver can install some eclipse plugins.

Vim Keybindings

You can install vrapper as vim keybindings on dbeaver.

  1. Help -> Install Software

  2. Add vrapper repository http://vrapper …

Make Your Model Training Reproducible in PyTorch

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

The PyTorch doc Reproducibility has very detailed instructions on how to make your model training reproducible. Basically, you need the following code.

torch.manual_seed(args.seed)
np.random.seed(args.seed …

Class in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

@abstractmethod, @staticmethod, abstract class, etc.

override,

prefer classmethod to static method;

both class and static methods can be override

Meta Class

https://stackoverflow.com/questions/100003/what-are-metaclasses-in-python

It seems to me …