Understanding Model Diagnostics in Machine Learning: A Comprehensive Guide