RandDist | Bend the rules for randoms

Random generator with custom distribution function One day, I was tasked with creating a synthetic dataset of electricity consumption for a large number of houses over a long period of time to complement a real dataset. I realized that a normal distribution wouldn’t work, so I couldn’t use numpy.random.normal. We eventually didn’t use the synthetic dataset in our final work, but I had a neat class that was ready to be packaged as a pip package at the end of the day....

May 25, 2022 · 1 min · 205 words · Me