Intermediate Topic 29 of 51 AI & Machine Learning
Neural Networks
Layered networks of weighted units learning representations.
How it works
A neural network is a model made of layers of simple units, neurons, each computing a weighted sum of its inputs plus a bias and passing it through a nonlinear activation. Stacking layers lets the network learn hierarchical representations, and with enough units it can approximate any continuous function. Parameters are trained with gradient descent using backpropagation on a loss function. Architectures include feedforward networks, convolutional networks, recurrent networks and transformers.
Step-by-step walkthrough
- Inputs enter the first layer.
- Each unit takes a weighted sum and applies a nonlinearity.
- Later layers build more abstract features.
- The output layer gives the prediction.
- Training adjusts the weights by backpropagation.
Where it is used
Image and speech recognition, language models, recommendation, translation, game playing and scientific modeling use deep neural networks, powered by GPUs and large datasets.
Common pitfall
They need lots of data and compute, can overfit and are often hard to interpret. Training is sensitive to initialization, learning rate and architecture. Vanishing gradients and bad data cause failures. Start with small architectures, normalize inputs, use regularization such as dropout and batch normalization and monitor training and validation curves.
Where it fits in the course
Neural Networks is topic 29 of 51 in AI & Machine Learning, rated Intermediate. It follows Hyperparameter Tuning. The next topic is Perceptron.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the AI & Machine Learning quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the AI & Machine Learning quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Neural Networks?
Where do people use Neural Networks?
What is the most common mistake with Neural Networks?
What should I learn before this topic?
How can I practice it?
Is Neural Networks hard to learn?
How long does it take to learn Neural Networks?
Which topics are related to Neural Networks?
What should I study after Neural Networks?
Related topics
- Hyperparameter Tuning (AI & Machine Learning)
- Perceptron (AI & Machine Learning)
- PCA (AI & Machine Learning)
- Activation Functions (AI & Machine Learning)
- 5G Networks (Computer Networks)
- Neural Rendering (Graphics, Vision & Media)