Fabrizio Damicelli
About
Blog
Code
Research
Teaching
Videos
Links
TIL
Blog
Parsing JSON takes time – time is money
A couple of tips to parse JSON Lines faster in Python.
2024-07-26
Fast(er)API: Optimizing Processing Time
A few simple tips to make your REST API go faster.
2024-07-13
Efficient Deserialization of Numpy Arrays
Speed up the retrieval of stored vectors.
2024-06-23
PyTorch DataLoader: Understand and implement a custom collate function
Understand DataLoader’s inner workings and bring your data pipeline to the next level.
2023-09-13
seaborn and tensors: A match not quite made in heaven
Autopsy of a little gotcha plotting tensors data.
2022-08-04
from collections import ChainMap
An elegant solution to efficiently carry out a look up over more than one dictionary.
2022-01-29
Linear Regression: Don’t forget your bias
Defaults matter. This one tricks more people than you think.
2021-10-16
Merging Python dictionaries: A functional take
An elegant way to merge
many
dictionaries in Python by leveraging some functional tools.
2021-10-10
What is starmap?
A quick explanation of this useful functionality from the Python itertools module.
2021-09-18
Achtung: Watch out, German csv readers!
Little pandas Gotcha dealing with German text.
2020-05-20
Explicit is better than implicit
A basic but not so obvious numpy example.
2020-05-10
Does your embedding make sense?
Projecting data is easy. Understanding the outcome, less so. Interactive plots can help.
2019-12-12
Divide and conquer
How to compute over a billion cosine distances on a laptop. Standing on the shoulders of the same giants, once again.
2019-11-30
No matching items