Find S Algorithm In Machine Learning Example Python