python & numpy implementation of several machine learning algorithms