AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

Deep learning: neural networks from the ground up

Build a neural network by hand, train it with gradient descent, then use PyTorch on a free GPU to read photos with convolutional networks and transfer learning.

Your phone unlocks when it sees your face, a shopping app finds a dress from a photo, a voice assistant writes down what you say, and a chat assistant answers in full sentences. All of them run on neural networks: stacks of simple number-crunching units that learn from examples. When the stack has many layers, it is called deep learning.

In this course you will first build a neural network yourself, one neuron at a time, in plain NumPy, so nothing is magic: weights, activation functions, loss, gradient descent and backpropagation. Then you will use scikit-learn's networks on handwritten digits and learn to spot and fight overfitting. Finally you will move to PyTorch, the library most deep learning teams use, and train convolutional networks on photos on a free GPU in Google Colab, including transfer learning: reusing a network that has already seen millions of photos.

You need Python basics, NumPy and the machine learning course before this one. The first part runs in your browser. Lessons 7 to 10 also have a notebook for Google Colab, which lends you a GPU for free with a Google account.

  • Learn lessons explain one idea at a time, with small exercises you can try again and again.
  • Industry ready lessons give you real business questions, an honest comparison with simpler methods, and the interview questions that go with them.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 25 min Free sample πŸ”’ AiTeky Pass What is a neural network? Meet the neuron, a tiny decision-maker that weighs its inputs, adds a bias and squashes the result. Build one in NumPy, try the activation functions, put neurons side by side in a layer and stack layers into a network.
  2. 02 30 min πŸ”’ AiTeky Pass Learning from mistakes - loss and gradient descent Teach a one-neuron model to predict a chai stall's sales. Measure its mistakes with a loss, find which way is downhill with the gradient, take small steps with gradient descent, and see what a learning rate that is too small or too big does.
  3. 03 35 min πŸ”’ AiTeky Pass Hidden layers and backpropagation Find a pattern that no straight line can split, watch a single neuron fail on it, then build a network with a hidden layer in NumPy and train it with backpropagation, which passes the blame for each mistake back through the layers.
  4. 04 30 min πŸ”’ AiTeky Pass Neural networks in scikit-learn - reading handwritten digits Turn small photos of handwritten digits into numbers, train scikit-learn's neural network to read them, see how softmax gives ten probabilities that add up to 1, follow the loss as it learns, and look at the digits it still gets wrong.
  5. 05 30 min πŸ”’ AiTeky Pass Overfitting - when a network learns too well Give a big network too few examples and watch it memorise them. Spot overfitting with a validation set and loss curves, then fight it by stopping early, keeping weights small (regularisation), dropping neurons at random and getting more data.
  6. 07 35 min πŸ”’ AiTeky Pass PyTorch, tensors and a free GPU See why graphics chips make deep learning fast, train in mini-batches, and move to PyTorch, where tensors live on the GPU and autograd does backpropagation for you. Then run the same network as lesson 3 in PyTorch on a free GPU in Google Colab.
  7. 08 40 min πŸ”’ AiTeky Pass Networks that see - convolutional networks Slide a small filter across an image by hand to find its edges, shrink the result with pooling, and see why this needs a tiny fraction of the weights of an ordinary layer. Then train a convolutional network on 70,000 clothing photos in Colab and beat an ordinary network with a quarter of the weights.
  8. 09 35 min πŸ”’ AiTeky Pass Transfer learning - reuse what a network already knows Take a trained network, cut off its last layer and reuse the rest as a feature maker for a new job with only a few labelled examples. Try it on digits in the browser, then reuse a network trained on over a million photos in Colab and jump from 48% to 80% on a new photo task.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 06 40 min πŸ”’ AiTeky Pass On the job: does a neural network beat simpler models on a price table? Your manager wants the used-car price model rebuilt as a neural network. Prepare the table the way networks need it, see what forgetting to scale does, tune the network fairly, compare it honestly with linear regression and boosting, and write the recommendation, with the interview questions that go with it.
  2. 10 50 min πŸ”’ AiTeky Pass On the job: auto-tag product photos for a fashion marketplace Train a photo tagger on a free GPU, then decide how to use it in a real business. Find which clothes it confuses, check that its confidence means something, pick the confidence above which tags go live without a person checking, work out the saving in rupees, and practise the interview questions.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in