aNet.ai
Machine Learning/Learning path
0day streak0XP · Lv 1
← 15. Introductory Neural Networks
Lesson 8 of 14 8 min · 141 words

Computational graphs

Breaking a computation into simple nodes.

A computational graph breaks a calculation into simple operations (nodes) connected by the values flowing between them (edges). Inputs and parameters are leaves; the loss is the final node.

For example, becomes: , , , . Each node knows how to compute its output (forward) and the local derivative of its output with respect to its inputs (backward).

This representation is what makes deep learning frameworks work. PyTorch and TensorFlow record the graph as you compute, then traverse it backwards to get every gradient automatically — automatic differentiation.

Formula to remember

2D Gaussian kernel

Slides

Smoothing filter; largest weight at the centre.

Quick check · +5 XP

The vanishing gradient problem is worst with…

Practice this topic
Saved in this browser as you type.
aNet.ai · Introduction to Machine Learning · NewUU course outlineProgress saved in this browser