Top 37 Python Machine Learning Library Cheat Sheets

This article is a collection of useful machine learning cheat sheets focusing on the Python libraries such as Theano, Keras, TensorFlow, PyTorch, NetworkX, and other ML-related Python libraries.

You may want to check out these great resources that cover many of these topics at once:

Theano Cheat Sheets

Theano is a Library created entirely with Python and is considered the industry standard for deep learning.

Cheat Sheets:

  1. http://www.hidasi.eu/rsss17/theano_cheatsheet.pdf
  2. https://cheatography.com/external/datacamp/
  3. https://www.datasciencecentral.com/page/search?q=python+cheat+sheet
  4. https://docs.huihoo.com/deep-learning/deeplearningsummerschool/2015/Introduction-to-Theano.pdf
  5. http://mlg.eng.cam.ac.uk/yarin/PDFs/2016_NASA_tutorial.pdf
  6. http://ir.hit.edu.cn/~jguo/docs/notes/a_simple_tutorial_on_theano.pdf

TensorFlow Cheat Sheets

TensorFlow is a free and open-source software library for machine learning. It can be used across a range of tasks but has a particular focus on training and inference of deep neural networks. Tensorflow is a symbolic math library based on dataflow and differentiable programming. Wikipedia

Cheat Sheets:

  1. https://blog.finxter.com/tensorflow-cheat-sheets/
  2. http://www.aicheatsheets.com/static/pdfs/tensorflow_v_2.0.pdf
  3. https://cheatography.com/external/datacamp/

Keras Cheat Sheets

The Keras library was written purely in Python and provides the interface for Theano and TensorFlow. Keras is an open-source software library that provides a Python interface for artificial neural networks. Keras acts as an interface for the TensorFlow library. Up until version 2.3, Keras supported multiple backends, including TensorFlow, Microsoft Cognitive Toolkit, Theano, and PlaidML. Wikipedia

Cheat Sheets:

  1. https://s3.amazonaws.com/assets.datacamp.com/blog_assets/Keras_Cheat_Sheet_Python.pdf
  2. https://raw.githubusercontent.com/rstudio/cheatsheets/master/keras.pdf
  3. https://www.datacamp.com/community/blog/keras-cheat-sheet
  4. https://becominghuman.ai/keras-cheat-sheet-neural-networks-in-python-738c0d170c2e
  5. https://github.com/haribaskar/Keras_Cheat_Sheet_Python

PyTorch Cheat Sheets

PyTorch is an open-source machine learning library based on the Torch library, used for applications such as computer vision and natural language processing, primarily developed by Facebook’s AI Research lab. It is free and open-source software released under the Modified BSD license. Wikipedia

Cheat Sheets:

  1. https://blog.finxter.com/top-pytorch-cheat-sheets/
  2. https://tutorials.pytorch.kr/beginner/ptcheat.html
  3. https://www.simonwenkel.com/publications/cheatsheets/pdf/cheatsheet_pytorch.pdf
  4. https://pytorch.org/tutorials/beginner/ptcheat.html
  5. https://www.kdnuggets.com/2019/08/pytorch-cheat-sheet-beginners.html

Selenium Cheat Sheets

Selenium is a portable framework for testing web applications. Selenium provides a playback tool for authoring functional tests without the need to learn a test scripting language. Wikipedia

Cheat Sheets:

  1. https://intellipaat.com/blog/tutorial/selenium-tutorial/selenium-cheat-sheet/
  2. https://cheatography.com/tag/selenium/
  3. https://medium.com/@madhankumaravelu93/selenium-cheat-sheet-a-comprehensive-list-of-selenium-commands-fa4c5c9d11ab
  4. http://www.cheat-sheets.org/saved-copy/rc067-010d-selenium-1.pdf
  5. https://www.cppbuzz.com/selenium/cheat-sheet-for-selenium-automation

Open CV Cheat Sheets

OpenCV is a library of programming functions mainly aimed at real-time computer vision. It was originally developed by Intel, it was later supported by Willow Garage then Itseez. The library is cross-platform and free for use under the open-source Apache 2 License. Wikipedia

Cheat Sheets:

  1. https://blog.finxter.com/best-python-opencv-cheat-sheet/
  2. https://medium.com/analytics-vidhya/cheat-sheet-for-opencv-all-you-want-to-know-2021-edition-part-1-8b63963f9f7
  3. https://heartbeat.fritz.ai/opencv-python-cheat-sheet-from-importing-images-to-face-detection-52919da36433
  4. https://cheatography.com/thatguyandy27/cheat-sheets/open-cv/
  5. https://github.com/abdul-rehman-2050/OpenCV-Cheatsheet
  6. https://github.com/amirbawab/OpenCV-cheat-sheet
  7. https://duck.co/ia/view/opencv_python_cheat_sheet

NetworkX Cheat Sheets

NetworkX is a Python library for studying graphs and networks. NetworkX is free software released under the BSD-new license. Wikipedia

Cheat Sheets:

  1. https://cheatography.com/murenei/cheat-sheets/network-analysis-with-python-and-networkx/
  2. https://networkx.org/documentation/latest/_downloads/networkx_reference.pdf
  3. https://github.com/adamilyas/complex-networks/blob/master/networkx%20Cheat%20Sheet.pdf
  4. https://www.cl.cam.ac.uk/~cm542/teaching/2011/stna-pdfs/stna-lecture11.pdf
  5. https://www.python-graph-gallery.com/cheat-sheets/

RDFLib Cheat Sheets

RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information. This library contains parsers/serializers for almost all of the known RDF serializations, such as RDF/XML, Turtle, N-Triples, & JSON-LD, many of which are now supported in their updated form.

Cheat sheets:

  1. https://vincenttunru.gitlab.io/tripledoc/docs/cheatsheet
  2. https://www.slideshare.net/LeeFeigenbaum/sparql-cheat-sheet
  3. https://groups.google.com/g/rdflib-dev/c/BdQDCrGjd60?pli=1
  4. http://explore.dublincore.net/educational_audience/student/page/7/