Why and how to run machine learning algorithms on edge devices