Efficient Methods For Distributed Machine Learning And Resource Management In The Internet-Of-Things