I have to code the MiLoF algorithm for detecting outliers in an unsupervised manner using non-stationary data. I am attaching the paper which explains the algorithm here. However, there are many things involved and things are becoming very complicated once I start coding it. It will be great if anyone can help me with coding this. Coding is to be done in Python.