deepschool.ai
Home
Blog
Programming Tips
ML Consulting
DL Course
Categories
All
(6)
data
(1)
python
(1)
pytorch
(4)
Programming Tips
Thoughts on CosineEmbeddingLoss
pytorch
\[ \begin{align} \text{loss}(x, y) = \begin{cases} 1 - \cos(x_1, x_2) & \text{if } y = 1 \\ \max(0, \cos(x_1, x_2) - \text{margin}) & \text{if } y =…
Aug 15, 2023
Pydantic Post Init
python
If you want to update an existing property, you can do this:
Jan 3, 2023
Timm choosing a model
pytorch
Choosing a backbone for transfer learning is easy thanks to Timm. However, which model is a mystery. I use the following to use a small model which has >80% accuracy on…
Jan 2, 2023
Pytorch Lightning Learning rate finder
pytorch
The following plots the loss against learning rate in order to discover an “optimal” learning rate.
Jan 1, 2023
An Intuitive Loss for Imbalanced Classification
An alternative approach to Focal Loss
Aug 28, 2021
Coco Semantic Segmentation in PyTorch - Data Prep
pytorch
data
How to prepare and transform image data for segmentation
Aug 21, 2021
Sachin Abeywardana
No matching items