miscellaneous codes for machine learning related projects