Welcome to the Algorithm Cheatsheets repository! This is a curated, ever-growing collection of quick-reference guides, summaries, and code snippets for core Machine Learning (ML) and Data Science (DS) algorithms.
Whether you're prepping for an interview, cramming for an exam, or just need a quick syntax refresher while modeling, this repo is built for you.
- Supervised Learning
- Unsupervised Learning
- Deep Learning
- Data Preprocessing & Evaluation
- Contributing
Algorithms that learn from labeled training data to predict outcomes.
- Linear Regression: Cheatsheet
- Logistic Regression: Cheatsheet
- Decision Trees & Random Forests: Cheatsheet
- Support Vector Machines (SVM): Cheatsheet
- K-Nearest Neighbors (KNN): Cheatsheet
- Naive Bayes: Cheatsheet
- Gradient Boosting (XGBoost, LightGBM): Cheatsheet
Algorithms that infer patterns, structures, and groupings from untagged data.
- K-Means Clustering: Cheatsheet
- Hierarchical Clustering: Cheatsheet
- Principal Component Analysis (PCA): Cheatsheet
- DBSCAN: Cheatsheet
- Association Rules (Apriori): Cheatsheet
Neural networks and advanced architectures.
- Artificial Neural Networks (ANN): Cheatsheet
- Convolutional Neural Networks (CNN): Cheatsheet
- Recurrent Neural Networks (RNN & LSTM): Cheatsheet
- Transformers & Attention: Cheatsheet
The essential foundations of building robust models.
- Feature Scaling (Normalization vs. Standardization): Cheatsheet
- Encoding Categorical Data: Cheatsheet
- Handling Missing Data: Cheatsheet
- Evaluation Metrics (Accuracy, F1, ROC-AUC, RMSE): Cheatsheet
- Cross-Validation & Hyperparameter Tuning: Cheatsheet
- Browse: Navigate to the specific category you need from the table of contents.
- Learn: Open the
.mdcheatsheet for a quick theoretical overview, pros/cons, assumptions, and key formulas. - Apply: Check the attached Python/Jupyter Notebook examples for standard
scikit-learn,TensorFlow, orPyTorchimplementations. - Bookmark: Star (⭐) this repository so you can easily find it during your next project or interview prep!
We love contributions from the community! If you have a cheatsheet for an algorithm not listed here, or want to improve an existing one:
- Fork the repository.
- Create a new branch (
git checkout -b feature/new-cheatsheet). - Add your cheatsheet (Markdown or Jupyter Notebook).
- Commit your changes (
git commit -m 'Add KNN cheatsheet'). - Push to the branch (
git push origin feature/new-cheatsheet). - Open a Pull Request.
Please read our Contribution Guidelines for formatting rules.
This project is licensed under the MIT License - see the LICENSE file for details. Let's make learning open and accessible!
Made for Developers by Wecncode Dev Community 🩶