Cheat Sheets for AI, Neural Networks, Machine Learning, Deep Learning & Big Data

Which machine learning cheat sheet should you open? If you know what you want to predict but not which algorithm to try, start with scikit-learn’s estimator map. If you already have a model and the…

Which machine learning cheat sheet should you open? If you know what you want to predict but not which algorithm to try, start with scikit-learn’s estimator map. If you already have a model and the problem is a missing column, an unexpected array shape, or an old TensorFlow example, use the reference for that specific task instead.

Choosing a model: follow the output, not the algorithm name

Suppose you want to route support tickets. If past tickets have team names attached, your target is a category: follow the classification branch. If the target is the number of hours until resolution, follow regression instead. If you have no team labels and want to discover recurring ticket types, look at clustering. The map works like a routing table: the question sends you down one branch. Unlike a routing table, it cannot tell you which choice will perform best on your data.

For the routing task, keep some tickets out of training. Build the text vocabulary from the training tickets alone, then apply that same vocabulary to the held-out tickets. Otherwise information from the test set leaks into the model-building process. See scikit-learn’s guide to data leakage and pipelines, or compare the options in our guide to machine learning algorithms.

Quick references for data, charts, and neural networks

  • Inspect a table or an array. Use 10 minutes to pandas to select columns, handle missing values, or group rows. If two arrays won’t combine, look up dimensions and shape in the NumPy guide before changing the data.
  • Wrangle or plot data in R. Search Posit’s cheat sheet library for dplyr to summarize rows, tidyr to reshape a table, or ggplot2 to map columns to chart features.
  • Work with distributed tables. Apache Spark’s PySpark DataFrame quickstart shows how to select, filter, and group records. Bringing a small result back to your machine is different from collecting the entire distributed table into local memory.
  • Read a neural network diagram. Start with The Neural Network Zoo by Fjodor van Veen and Stefan Leijnen. Read a diagram like a dependency graph: the connections show where information can flow, but not what the network learned or how well it works.
  • Update an old deep learning example. Match the documentation to the versions installed in your project. For TensorFlow 1 code, start with the TensorFlow 2 migration guide; for an older Keras project, check the separate Keras 2 to Keras 3 guide. They address different migrations.
  • Compare sorting costs. Eric Rowell and contributors’ Big-O Cheat Sheet separates average time, worst-case time, and space. Those columns describe how a cost grows with input size, not how many milliseconds your job will take.

About the former download: The PDF collected sheets from several sources. We could not verify permission to redistribute the complete collection, so this page points to the authors and project documentation instead.

For a worked example rather than a lookup

If you want to follow a project from preparing data to training a model, Aurélien Géron’s book is a companion to these references, not a requirement for using them.

As an Amazon Associate I earn from qualifying purchases. Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow on Amazon US.