Practical Codes for "Machine Learning : An Algorithm Perspective"