Use init_subclass to replace metaclasses
Metaclass is an interesting feature in Python. But in many situations, it is overkilled. From version 3.6, we can replace it with the `init_subclass` method.
About technology stuff that piqued my interest
Metaclass is an interesting feature in Python. But in many situations, it is overkilled. From version 3.6, we can replace it with the `init_subclass` method.
In this article, we try to restore Vietnamese diacritics using a Transformer model. You don’t need to understand Vietnamese to read this, I promise :).
An adversarial example is a data point specifically crafted to fool a deep learning model. Today, we will use Tensorflow and FSGM to create one such example.
It’s very time-consuming to train a deep learning model without a GPU. In that case, we can use fast feature extraction to speed up the training process.
Tuning hyperparameters for a deep learning model can be tendious. Fortunately, we can automate part of the tuning process with KerasTuner.
The most common way to synchronize threads in C# .NET is using the lock keyword. But in many situations, the Interlocked class can provide superior performance.
A mixin is a small class, whose purpose is to extend the functionality of other classes. It’s a useful tool to take advantage of multiple inheritance in Python.
Sometimes, our training dataset is too big to fit into memory. The HDF5 format can help us access data from disk as fast and efficiently as possible.