Algorithms in book STATISTICAL LEARNING METHODS, implemented by Python.