Back to Course
Reference

Machine Learning Cheat Sheet : A Step-by-Step Guide

This cheat sheet distills the entire machine learning workflow into a clear, repeatable sequence you can follow for almost any project.

The Machine Learning Workflow

StepWhat to Do
1. Define the ProblemIs it classification, regression, or clustering?
2. Collect DataGather data relevant to the problem
3. Explore & CleanHandle missing values, outliers, and inconsistencies
4. Feature EngineeringSelect, transform, and scale relevant features
5. Split DataTrain/validation/test sets
6. Choose a ModelPick an algorithm suited to the problem type
7. Train the ModelFit the model on the training data
8. EvaluateMeasure performance on validation/test data
9. Tune HyperparametersOptimize using grid search, random search, etc.
10. Deploy & MonitorShip the model and track performance in production

Choosing an Algorithm — Quick Reference

  • Predicting a number: Linear Regression, Random Forest Regressor, XGBoost.
  • Predicting a category: Logistic Regression, Decision Trees, SVM, Random Forest.
  • Finding groups in data: K-Means, Hierarchical Clustering, DBSCAN.
  • Working with images/text: CNNs, RNNs, Transformers.

Common Evaluation Metrics

  • Classification: Accuracy, Precision, Recall, F1-score, ROC-AUC.
  • Regression: MAE, MSE, RMSE, R-squared.
  • Clustering: Silhouette Score, Inertia.

Quick Debugging Checklist

  • High training error? → Try a more complex model or more features.
  • Large gap between train and test error? → You're likely overfitting; add regularization.
  • Both errors high? → You're likely underfitting; add complexity or more relevant features.
Key Takeaway: Keep this sequence handy — most ML projects fail not from a wrong algorithm choice, but from skipping data exploration and evaluation steps.

Ready to master Machine Learning?

Build real-world machine learning skills with hands-on projects, mentor-led sessions, and industry-relevant tools.

Explore Course