Tensors for Machine Learning
  • Home
  • Inicio
  • Handbook
  • Manual
  • Notebooks
  • Cuadernos
  • Interactive
  • Interactivo
  • Kahoot
  • Kahoot
  • References
  • Referencias
  • Slides
  • Diapositivas
  • Companion
  • Complemento
  • Teach
  • Enseñar
  • FAQ
  • FAQ
  • 🇬🇧 EN
  • 🇪🇸 ES

210 minutes · Hands-on Python

See tensors. Think in ML.

A hands-on session on reshaping, solving and factorizing tensors — written in NumPy, run on real images, video and city data.

2 October 2026 · 5:00 PM–8:00 PM COT (UTC-5) · Universidad El Bosque, Bogotá, Colombia — classroom to be confirmed

Read the handbook →

Set up in Colab

No install — every notebook runs in Google Colab.

New here? Review the required preparation.

Taught in English · Questions in English & Spanish

Open the widget: three photos as a 4-D tensor, transposed and then reshapedTry it live →

Real photos, one cube per byte. Transpose keeps the picture; reshape breaks it.

Open the widget: two shapes aligned from the right and stretchedTry it live →

Two shapes lined up from the right; every axis of size 1 stretches, and nothing is copied.

Open the widget: the unit circle a matrix sends to an ellipse, with its singular vectorsTry it live →

A matrix takes the unit circle to an ellipse: A v = σ u, one vector at a time.

Open the widget: a voice cut into windows, becoming a frequency-by-time matrixTry it live →

A voice becomes a matrix — 513 × 465 — and you can hear what a transpose does to it.

Open the widget: attention scores turned into weights that sum to oneTry it live →

Softmax turns a row of scores into weights that sum to 1 — one query attending to four keys.

Open the widget: a taxi tensor factorised into a small core plus three factor matricesTry it live →

Real taxi trips, 4 × 5 × 24: 480 numbers become a core plus three factors, at 6.7% error.

One number → a vector → a matrix → a tensor → a layer. Click a picture to try it live.

From one number to a neural-network operation A scalar becomes a vector, then a matrix, then a three-dimensional tensor, each labelled with its NumPy shape. The tensor feeds a neural-network layer that turns inputs into outputs. THE SHAPE OF MACHINE LEARNING 7 ScalarVectorMatrix ()(4,)(3, 3) 3D tensor (3, 4, 4) Neural network y = σ(Wx + b) inputoutput

By the end, you’ll be able to…

  • 01

    Own the shape.

    Slice, reshape, and broadcast tensors in NumPy.

  • 02

    See the structure.

    Decompose tensors. Explore convolutions in the take-home.

  • 03

    Connect it to ML.

    Read the tensor math behind compression and neural networks.

Workshop byRavi Kalia and Sebastian Laverde Chunza

Workshop repositoryExplore the code on GitHub ↗ Live discussionSmall groups on Discord ↗

Before the workshop

Vectors and matrices are what you need to begin. Complete the required steps before the session.

Step 1: Core Concepts Required · ~2–3 h

Review vectors and matrices in Goodfellow Ch. 2 and complete the pre-work notebooks. That chapter’s section on SVD is worth a skim if it is new to you — the workshop re-introduces it from scratch, so it is not required reading.

Step 2: Setup Required, 5 mins

Run Notebook 00 in Google Colab to check that Colab and the data downloads work on your machine. Colab blocked, or no Google account? See the FAQ.

Step 3: Visual Refresher Optional · ~3 h

Watch 3Blue1Brown’s Essence of linear algebra.

On the day: bring your laptop and charger, sign in to Google in your browser, and open Notebook 00 from the notebooks page when the session starts.

Who this is for

Software engineers entering ML

Practice reading tensor shapes in NumPy and recognize the same operations in PyTorch and JAX.

Data analysts and scientists

Extend familiar tabular workflows to images, sequences, and higher-dimensional arrays.

Self-taught ML practitioners

Trace shape mismatches through indexing, reshaping, broadcasting, and contractions.

STEM graduates

Connect linear algebra to working Python examples of decompositions and ML.

Your workshop toolkit

📖 Handbook

Full theory, exercises, and step-by-step solutions.

Read Handbook

🚀 Notebooks

Interactive Python notebooks running in Google Colab.

Run Code

📊 Slides

Visual presentation decks for workshop sessions.

View Decks

💡 Companion Hub

Mind maps, 1-minute shorts, audio overviews, and self-checks.

Explore Hub

🎯 Kahoot

Live interactive quizzes for concept checks.

Join Quiz

📚 References

Core papers, textbook chapters, and repository source code.

View Sources

THE LEARNING JOURNEY

Your path from arrays to ML.

Six connected ideas. Code them. See them. Make them click.

  1. 01

    Foundations

    Read shapes and axes.

  2. 02

    Tensor Operations

    Reshape. Broadcast. Contract.

  3. 03

    Linear Algebra

    Solve systems. Find structure.

  4. 04

    Convolutions

    Turn pixels into features.

    Take-home
  5. 05

    Factorizations

    Compress without losing the plot.

  6. 06

    ML Applications

    Connect the math to models.

Explore the notebooks →

Try one in the browser

Explore the complete set of widgets, from broadcasting and image layouts to attention, audio, and factorization. No installation or account needed.

See them all

210 minutes. One hands-on rhythm.

  1. 💻 10m Code
  2. 💡 5m Concept Review
  3. 💬 10m Group Discussion

Tensors for Machine Learning · Built with Quarto

 

Source