Energy efficiency in machine learning