some code for machine learning  practice