codes when learning ML via 《ML on Action》