write code about machine learn by self