Compare my algorithm to scikit-learn, ensuring the exact same API is used