Wu Enda machine learning homework (full version!! Personally done!)