Machine learning for Fog Computing