Basic working of machine learning libraries of python