Machine learning applications for fog computing in IoT: a survey