Blog posts

2023

Universal Experiment Tracker

7 minute read

Published:

Robust experiment tracker for algorithms running in loop (e.g. grid search). Prevents data-loss and allows for simple recovery on error. The search loops can be skipped by simply running a check(…) function for the set of parameters.

2022

Python code: Automatic git-diff back up

1 minute read

Published:

GIT is a wonderful tool, but it is just a tool. If you already had bad experience with GIT, or just have trust issues, here is a piece of python code, that automatically creates a back up of all (except hidden) git diff files, between 2 branches and re-creates a folder structure.

Python code: Multi-index pandas DataFrame

1 minute read

Published:

Although there several takes on using multi-index DataFrames around the internet, it still takes some time to get to a simple and elegant solution. Therefore, with this post I would like to show what at

Python code: Nested dictionary with lambda functions

1 minute read

Published:

Sometimes it is nice to have nested dictionary defined by single line. To avoid initializing keys (e.g. the keys may be unknown before the dictionary is populated) one can use the following code to create a nested dictionary with pre-defined number of levels.

2021