Edge Machine Learning for Smart IoT Environments