Single logo
  • Courses
  • Blog
  • About
Join for freeJoin free
  1. Blog
  2. /
  3. Learning paths
  4. /
  5. Neural Networks from Scratch to Embeddings

Learning path · 9 tutorials

Neural Networks from Scratch to Embeddings

Who it is for
Learners who know classic machine learning in scikit-learn and want to understand how neural networks learn.
What you will achieve
See why networks need layers, run the forward pass, follow backpropagation, train with mini-batches, build the same network in Keras and PyTorch, read a CNN, and search with embeddings.
Prerequisites
Basic Python and NumPy · Train-test split and a first classifier
Start with step 1: Why Neural Networks

Curriculum

  1. 1
    Step 1: Why Neural Networks: Pixels, One Neuron and Layers

    Why pictures need neural networks: a handwritten digit is 784 numbers, one neuron is a weighted sum plus a bias and one small rule, and neurons stack into layers. Worked out on MNIST with NumPy.

  2. 2
    Step 2: The Forward Pass and Activation Functions: ReLU, Sigmoid, Tanh and Softmax

    Follow numbers through a tiny 3-2-3 network in NumPy: one matrix product per layer, ReLU inside, softmax at the end, and a count of every weight and bias.

  3. 3
    Step 3: Loss and Backpropagation: How Wrong, and Who Is to Blame

    The loss says how wrong the network was; backpropagation says how much each weight is to blame. MSE and cross-entropy, the chain rule by hand on a two-weight chain, then the same gradients from PyTorch autograd.

  4. 4
    Step 4: The Training Loop: Epochs, Mini-Batches, Learning Rate and Optimisers

    How training is organised: shuffle, cut into mini-batches, take one step per batch, repeat per epoch. Real MNIST runs compare three learning rates, SGD against Adam, and show the overfitting signal in the validation loss.

  5. 5
    Step 5: Your First Neural Network with Keras: MNIST Digits at 97.7%

    Build the 784-128-10 digit network in Keras in five steps: load and scale, Sequential with Flatten and Dense, compile, fit for ten epochs, and test once. It reads handwritten digits with 97.72% test accuracy.

  6. 6
    Step 6: The Same Network in PyTorch: DataLoader, nn.Module and the Five-Line Training Loop

    Rebuild the Keras digit network in PyTorch and write the training loop yourself: DataLoader batches, an nn.Module class, five lines per batch, eval with no_grad, and 0.9756 test accuracy.

  7. 7
    Step 7: Convolutional Neural Networks (CNN) Basics: Filters, Feature Maps and Pooling

    Small filters slide over a picture looking for patterns. A vertical-edge filter by hand, padding and stride, max pooling, then a 20,490-parameter CNN that reaches 0.9861 on MNIST test digits.

  8. 8
    Step 8: Embeddings: Words as Vectors, Cosine Similarity and nn.Embedding

    Give every word a short list of numbers where close means similar. One-hot vs dense vectors, 20 real GloVe words on a map, cosine similarity (cat-dog 0.92, cat-car 0.36), king - man + woman, and nn.Embedding.

  9. 9
    Step 9: Similarity Search: Finding the Closest Vectors with NumPy and NearestNeighbors

    Ask one question of a whole collection of vectors: which items are closest to this one? Normalise, score every row with one matrix multiply, keep the top k or everything above a threshold, and check it with NearestNeighbors.

Single logo

StudyEasy AI Community

Hosted onSkool

Learn AI engineering, share what you build, and connect with other learners.

  • Free resources: lesson files, notebooks and code

  • Ask questions and join engineering discussions

  • Meet real people learning and building with AI

Join free on Skool

Single logo

Empowering Education, One Course at a Time

About
About usContact usFAQs
Legal
Terms of ServicePrivacy Policy

© 2026 StudyEasy Organization. All rights reserved.