Understanding Machine Learning Paradigms through the Lens of Statistical Thermodynamics: A tutorial