I really liked this article. It's the first time I see async Python used to solve a problem.
Suggestion: I think it would make sense to use softmax as the scaling function. This way you don't need to worry about outliers and you get to decide the running time.
Yeah totally agree, it would need a better scaling function to tackle outliers. The basic scaling was just to give an idea of how this could be improved. We can always devise better scaling methods and negative number handling. Thanks for your feedback, will try to incorporate it!