Top Colab Notebooks To Kickstart Your Machine Learning Journey

Colaboratory, or “Colab” for short, is a product from Google Research, which is technically a hosted Jupyter Notebook service that requires no setup to use.

With Google’s Colab, one can access its GPUs and TPUs almost for free. Now with its new paid version Colab pro, the machine learning practitioners can stay connected for up to 24 hours, compared to the 12 hours in the free version of Colab notebooks. One can also get priority access to high-memory virtual machines, which has double the memory of standard Colab VMs and has twice as many CPUs. 

In the next section, we look at a few illustrative examples on Colab notebooks that can kick start your machine learning journey in a couple of steps.


This tutorial contains an implementation of DeepDream, an experiment that visualizes the patterns learned by a neural network. DeepDream looks at patterns in an image and over-interprets and enhances them.

To do this, it feeds the image through the network, then calculates the gradient of the image with respect to the activations of a particular layer. The image then undergoes modification to increase these activations, enhancing the patterns seen by the network, thereby resulting in a dream-like image. 

Colab link.


Lucid is a collection of infrastructure and tools for research in neural network interpretability. This tutorial quickly introduces Lucid, a network for visualizing neural networks. Lucid is a kind of a step up from DeepDream and provides flexible abstractions so that it can be used for a wide range of interpretability research. Start visualizing neural networks with no setup from your browser using Colab.

Colab link 

GANs On TensorFlow

From creating million-dollar art auctions to making up fake presidents, GANs have been quite popular for the past couple of years. This notebook consists of GANs, and its many variants that have been developed over the years such as ‘DCGAN’, ‘WGAN’, ‘WGAN-GP’, ‘LSGAN’, ‘SNGAN’, ‘RSGAN’&’RaSGAN’, ‘BEGAN’, ‘ACGAN’, ‘PGGAN’, ‘pix2pix’, ‘BigGAN’.

Colab link

Getting Started With PyTorch 

Pytorch is one of the hottest machine learning tools today. Its rise in popularity can be attributed to the fact that many AI researchers are imbibing this framework by Facebook for their research. In the Colab repo, you’ll find many basic neural network operations using PyTorch packages.

Colab repo link

Movie Review Sentiment with BERT on TF Hub

BERT’s has been added to TF Hub as a loadable module, it’s easy to add into existing TensorFlow text pipelines. In an existing pipeline, BERT can replace text embedding layers like ELMO and GloVE. Alternatively, fine-tuning BERT can provide both an accuracy boost and faster training time in many cases.

Using this notebook, one can train a model to predict whether an IMDB movie review is positive or negative using BERT in TensorFlow with the TF hub. 

Colab link

Detectron 2 Beginner Tutorial

Detectron2 was developed by Facebook AI Research to implement state-of-the-art object detection algorithms. In this official Colab tutorial of Detectron2, one can get familiarise with some basics usage of Detectron2, including running inference on images or videos with an existing Detectron2 model.

Colab link


This project allows one to colorize and restore old images and film footage. This project makes use of NoGAN. Firstly, the generator is trained in a conventional way by itself with just the feature loss. Next, images are generated from that, and then a binary classifier is used to distinguish between those outputs and real images. A typical GAN working principle of generator and discriminator.

Colab repo link.

GPT-2: Text Generation

This notebook by Max Woolf walks through how to retrain an advanced text generating neural network on any text dataset for free on a GPU using Colaboratory with `gpt-2-simple`, a simple Python package that wraps existing model, fine-tunes and generates scripts for OpenAI’s GPT-2 text generation model (specifically the “small” 124M and “medium” 355M hyperparameter versions).

Colab link.

For more Colab notebooks, check this Github compilation.

Download our Mobile App

Ram Sagar
I have a master's degree in Robotics and I write about machine learning advancements.

Subscribe to our newsletter

Join our editors every weekday evening as they steer you through the most significant news of the day.
Your newsletter subscriptions are subject to AIM Privacy Policy and Terms and Conditions.

Our Recent Stories

Our Upcoming Events

3 Ways to Join our Community

Telegram group

Discover special offers, top stories, upcoming events, and more.

Discord Server

Stay Connected with a larger ecosystem of data science and ML Professionals

Subscribe to our Daily newsletter

Get our daily awesome stories & videos in your inbox

6 IDEs Built for Rust

Rust IDEs aid efficient code development by offering features like code completion, syntax highlighting, linting, debugging tools, and code refactoring

Can OpenAI Save SoftBank? 

After a tumultuous investment spree with significant losses, will SoftBank’s plans to invest in OpenAI and other AI companies provide the boost it needs?

Oracle’s Grand Multicloud Gamble

“Cloud Should be Open,” says Larry at Oracle CloudWorld 2023, Las Vegas, recollecting his discussions with Microsoft chief Satya Nadella last week.