Singleton Class Decorator

Jeremy Ribeiro | 28 April 2023

While coding in Python, I wanted to make a class become a singleton class, ie a class that can only have one instance. So I’ve looked around and found some singleton decorators. For the most part, they worked fine, but on some occasions, the classes I created with them did not behave as usual classes would. And the reason was that the singleton classes created with these decorators weren’t classes, but callable objects that return an object of the class on which the singleton decorator was called.

read more

Detecting Disasters on Twitter!

Jeremy Ribeiro | 27 December 2020

All the code I have used for this project can be found in this Jupyter Notebook.

read more

Uncertainty when forecasting s-curves

Jeremy | 07 September 2020

Some time ago Constance Crozier made a nice animation illustrating that forecasting s-curves is hard:

read more

COVID19: How many are missing?

Jeremy | 12 June 2020

The code used for making the plots and the regressions can be found here

read more