Deep Learning notebook by Arun Koundinya Deep Learning
  • Learning path
  • All notes
  • About

Deep Learning

Deep Learning notebook logo

Notebooks · TensorFlow · Hugging Face

Deep learning, one notebook at a time.

My study notes on deep learning, kept as a website so I can review them anywhere, even on my phone. They start with a single tensor and build up to CNNs, LSTMs and transformer embeddings. Every notebook keeps its code and output, and opens in Colab so you can run it yourself.

Start at step one → See the learning path ↓

Sentence-BERT architecture: two BERT towers feeding a classifier
Latest note · Feb 2025 Track 4

Representation Models for Text Classification

BERT out of the box scores 80%; its embeddings plus logistic regression, 85%; sentence-transformer embeddings, 87%.

12notes
4tracks
2projects
No matching items

The learning path

Four tracks, read left to right

Track 15 notes

Tensor foundations

What a tensor is, how to shape and combine tensors, and how TensorFlow computes gradients.

  1. 01TensorFlow Basics 1: Creating Tensors
  2. 02TensorFlow Basics 2: Data Types and Broadcasting
  3. 03Tensor Math Operations, Side by Side with NumPy
  4. 04TensorFlow Functions: stack, concat, expand_dims and gather
  5. 05Gradient Descent from Scratch with GradientTape
Track 22 notes

First neural networks

Linear regression as a one-neuron network, then what extra layers do, and don't, buy you.

  1. 01Linear Regression as a One-Layer Neural Network
  2. 02Shallow vs Multi-Layer Networks on Simulated Data
Track 32 notes

Projects

End-to-end projects: review sentiment with LSTMs, and vegetable photos with CNNs and transfer learning.

  1. 01Amazon Reviews: Sentiment Classification
  2. 02Vegetable Image Classification
Track 43 notes

Language and embeddings

Word2Vec, Hugging Face transformers, and sentence embeddings for text classification.

  1. 01Word2Vec: From Word Similarities to Product Recommendations
  2. 02Hugging Face Basics: Sentiment Classification
  3. 03Representation Models for Text Classification
No matching items

All notes

Newest first · RSS

Track 12 notes
Sentence-BERT architecture: two BERT towers feeding a classifier Track 4 · 3
Language and embeddings

Representation Models for Text Classification

BERT out of the box scores 80%; its embeddings plus logistic regression, 85%; sentence-transformer embeddings, 87%.
Hugging FaceembeddingsNLPsentiment

Feb 2025·3 min

king minus man plus woman equals queen, drawn as vectors Track 4 · 1
Language and embeddings

Word2Vec: From Word Similarities to Product Recommendations

Rebuild king − man + woman = queen with gensim, then reuse the same idea to recommend products from shopping baskets.
embeddingsWord2VecNLPrecommendations

Feb 2025·2 min

A grid of vegetable photos from the dataset Track 3 · 2
Projects

Vegetable Image Classification

Fifteen kinds of vegetable: from 62% with logistic regression to 100% test accuracy with MobileNetV2 transfer learning.
TensorFlowCNNtransfer learningcomputer vision

Jun 2024·6 min

Lifting plus sport: combining things Track 1 · 4
Tensor foundations

TensorFlow Functions: stack, concat, expand_dims and gather

When to stack images into a batch, join batches together, add a dimension, or pick out channels.
TensorFlowtensors

Jun 2024·2 min

Tokenizer, model and post-processing steps of a Hugging Face pipeline Track 4 · 2
Language and embeddings

Hugging Face Basics: Sentiment Classification

Open up the pipeline (tokenizer, model, post-processing), then fine-tune DistilBERT and add custom layers on top.
Hugging FacetransformersNLPsentiment

May 2024·8 min

Sentiment Analysis of Amazon Reviews title slide Track 3 · 1
Projects

Amazon Reviews: Sentiment Classification

From an 84% TF-IDF random forest to a 91% bidirectional LSTM with attention, on 100,000 Amazon reviews.
TensorFlowNLPLSTMsentiment

May 2024·19 min

Gradient descent stepping down a cost curve to its minimum Track 1 · 5
Tensor foundations

Gradient Descent from Scratch with GradientTape

First and second derivatives with tf.GradientTape, then a hand-written gradient descent loop that finds the minimum of y = x².
TensorFlowgradientsoptimisation

Apr 2024·2 min

Aggregating a tensor: min, max, mean and sum Track 1 · 3
Tensor foundations

Tensor Math Operations, Side by Side with NumPy

abs, argmax, reduce_max, reduce_sum, pow, log, exp and sqrt in TensorFlow and NumPy, and the one default that differs.
TensorFlowtensorsNumPy

Apr 2024·1 min

Accuracy against amount of data for deep learning and conventional machine learning Track 2 · 2
First neural networks

Shallow vs Multi-Layer Networks on Simulated Data

On 10,000 simulated rows, extra layers and activations never beat plain linear regression. Complexity has a cost.
TensorFlowKerasregressionactivations

Apr 2024·3 min

A single-layer network computing w·x + b Track 2 · 1
First neural networks

Linear Regression as a One-Layer Neural Network

Fit the diabetes dataset with scikit-learn's least squares and with a single Keras Dense layer, then compare the weights.
TensorFlowKerasregression

Mar 2024·2 min

Broadcasting a 3-element vector across a 4 by 3 matrix Track 1 · 2
Tensor foundations

TensorFlow Basics 2: Data Types and Broadcasting

TensorFlow's data types, and how broadcasting adds tensors of different shapes without copying data by hand.
TensorFlowtensorsbroadcasting

Mar 2024·2 min

TensorFlow logo Track 1 · 1
Tensor foundations

TensorFlow Basics 1: Creating Tensors

Create, index, reshape and aggregate tensors, the NumPy-like building block of every TensorFlow model.
TensorFlowtensors

Mar 2024·2 min

No matching items

More from Arun

Teaching, data stories and essays, on my other sites.

AI Basics with AK Free videos, slides and homework on Python, statistics and AI. The theory behind these notebooks.

Tidy Tuesday A dataset a week, turned into a chart in R or Python.

Canvass And Analyze Essays on psychology, analytics and management.

Portfolio Who I am, what I work on, and how to get in touch.

© 2024 – 2026 Arun Koundinya Parasa · Also: Canvass And Analyze · AI Basics with AK · Tidy Tuesday

 

Built with 💜 and Quarto.