Summary: Comp 3711
- This + 400k other summaries
- A unique study and practice tool
- Never study anything twice again
- Get the grades you hope for
- 100% sure, 100% understanding
Read the summary and the most important questions on COMP 3711
-
2 Neural Networks and Deep Learning
-
2.1.1 The Problem and the Approach
-
Why is handwriting recognition hard to solve with explicit rules, and what does the neural network approach do differently?
Human visualpattern recognition involves countless exceptions and edge cases that are nearly impossible to enumerate asrules . Instead of hard-codingrules ,neural networkslearn rules automatically from training examples — the moreexamples , the moreaccurate theinferred rules . Theprogrammer never writes a singleexplicit "if thispixel pattern , then thisdigit " rule. -
Why is handwriting recognition a good prototype problem for introducing deep learning?
It is challenging enough to require real techniques (trivial approaches fail) but not so hard that it demands immense computational power or data. It allows the introduction of fundamental ideas — perceptrons, sigmoid neurons, gradient descent — in a concrete, tractable setting. -
2.1.2 Perceptrons
-
What is a perceptron? Describe its inputs, weights, and output rule.
A perceptron is an artificial neuron (developed 1950s–60s) that:- Takes several binary inputs x₁, x₂, …
- Associates each input with a real-valued weight wⱼ (expressing its importance)
- Produces a binary output (0 or 1):
output = 0 if the weighted sum (w₁x₁ + w₂x₂ + …) is ≤ threshold
output = 1 if the weighted sum (w₁x₁ + w₂x₂ + …) is > threshold - Takes several binary inputs x₁, x₂, …
-
What is the bias b of a perceptron, and why does Nielsen introduce it?
Bias b ≡ −threshold .
Nielsen introduces it to simplify thenotation : instead of writing athreshold on the right-hand side, theoutput rule becomes:output = 0 if w·x + b ≤ 0output = 1 if w·x + b > 0
Conceptually,bias measures how easy it is for the neuron to fire:- Large
positive b → fires very easily - Large
negative b → fires rarely
- Large
-
What logic gates can a perceptron implement? Why does NAND matter?
A perceptron can implement AND,OR , andNAND gates by choosing appropriate weights and biases.NAND matters becauseNAND isuniversal forcomputation —any otherlogical function (NOT,OR , XOR, full adders, etc.) can be built entirely fromNAND gates. Therefore, networks of perceptrons can computeany logical function — they are computationallyuniversal . -
Why is NAND called "universal"? Sketch how you'd build NOT from NAND.
NAND is universal because every other Boolean function can be expressed as a combination of NAND gates alone.
NOT from NAND: feed the same input into both inputs of a NAND gate:
NAND(x, x) = NOT(x AND x) = NOT x
From NOT and NAND you can build AND, OR, and therefore any logic circuit. -
2.1.4 Architecture of Neural Networks
-
What are the three types of layers in a feedforward neural network?
1.Input layer — receives the raw features (e.g., pixel values)
2.Hidden layer (s) — intermediate layers, neitherinput noroutput ; where learned representations are built
3.Output layer — produces the final prediction
Layers that are neither the first nor last are "hidden " because their activations are not directly observed. -
What is a multilayer perceptron (MLP) and why is the name misleading?
MLP is thehistorical name for multi-layerneural networks . It ismisleading because modern MLPs almost always usesigmoid (or other smooth)neurons — not perceptrons. The name stuck fromhistorical convention even though theunderlying neuron type changed. -
What is the difference between feedforward and recurrent networks?
Feedforward Networks - Information flows in one direction only (no
loops )
Stateless — the same input always produces the same output- Considered less similar to how the brain works
- More widely used and better understood today
Recurrent Networks Allow loops — outputs can be fed back as inputs
- Have memory — outputs depend on previous states
- More similar to how the brain works
- Less widely used and generally harder to train
-
2.1.5 Classifying Handwritten Digits
This is a preview. There are 2 more flashcards available for chapter 2.1.5
Show more cards here -
Why is the digit recognition problem split into segmentation and classification?
Animage may containmultiple digits (e.g., a phone number).Segmentation firstbreaks theimage into individualdigit images.Classification thenidentifies eachisolated digit .
Chapter 1 focuses only onclassification — taking a single already-isolateddigit image and identifying whichdigit it is.
- Higher grades + faster learning
- Never study anything twice
- 100% sure, 100% understanding
Topics related to Summary: Comp 3711
-
Learning Goal - Using Neural Nets to Recognize Handwritten Digits
-
Learning Goal - How the Backpropagation Algorithm Works
-
Learning Goal - Improving the Way Neural Networks Learn
-
Learning Goal - A Visual Proof That Neural Nets Can Compute Any Function
-
Classification - General Framework
-
Classification - Impurity Measures
-
Classification - Overfitting & Pruning
-
Classification - Confusion Matrix & Metrics
-
Classification - ROC, AUC, Evaluation Methods

















