1D convolution for neural networks, part 2: Convolution copies the kernel
Key Takeaways
This video explains 1D convolution for neural networks, specifically how the kernel is copied and scaled during the convolution process, using mathematical notation and examples to illustrate the concept.
Full Transcript
you can see here where our signal has just sparsely nonzero elements most of them are zero except for a few that each of these nonzero elements results in a copy of the original kernel depending on the sign and on the magnitude of the nonzero element we can change both the size and the direction the size the magnitude and the sign of the kernel in the result but each of the points just takes a copy of the kernel adds it to the convolution and then scales it accordingly this becomes harder to see when the signal becomes dense has nonzero values altogether but you can imagine it as each element of the signal just taking a copy of the kernel and adding it in to the result we can see here even with a different kernel we get the same result by taking it flipping it and doing the sliding dot product with a signal a sparse signal we'll take that kernel and make scaled copies of it you can see the first one is just like the original kernel but smaller in magnitude the second copy is just like the original kernel and similar in magnitude and the third copy is just like the original kernel but flipped in sign we can express this same thing in math let's call our signal X our kernel W and our convolution result Y in this case we will make sure that our result Y is the same length as our signal X by trimming off the ends we'll come back to this and relax this assumption later and then our kernel W is going to have n elements our input and output Rx and ry are going to have m elements and this is what it would look like in a neural network your input is your signal X your result is your output Y and your Colonel W are your internal weights within the layer that you'll learn during the training phase well change the notation up a little bit instead of having R instead of indexing the values of our kernel from 0 to n minus 1 it makes it a little easier to handle if we index it between minus P and P this assumes that we have an odd number of elements in our kernel which is convenient when we go to slide it along it means that we can line up the value of the result with the value of the signal and they don't get sandwiched halfway in between so odd-numbered kernel is helpful and by assuming an odd-numbered kernel we can index it from minus P to P and this just makes some of the notation a little more convenient later
Original Description
Part of an 9-part series on 1D convolution for neural networks.
Catch the rest at https://e2eml.school/321
Playlist
Uploads from Brandon Rohrer · Brandon Rohrer · 48 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
▶
49
50
51
52
53
54
55
56
57
58
59
60
Robot Learning with a Biologically-Inspired Brain (BECCA)
Brandon Rohrer
BECCA talk at AGI 2011
Brandon Rohrer
Robot Learning with a Biologically-Inspired Brain (BECCA), The Sequel
Brandon Rohrer
BECCA listens to The Hobbit
Brandon Rohrer
Learning the building blocks of speech: BECCA extracts a hierarchy of audio features
Brandon Rohrer
BECCA listens for sound effects in The Hobbit
Brandon Rohrer
BECCA finds movie trailers while watching the Big Bang Theory
Brandon Rohrer
Listening for unexpected sounds: BECCA detects anomalies in audio data
Brandon Rohrer
Learning the building blocks of vision: BECCA extracts a spatio-temporal hierarchy of features
Brandon Rohrer
Watching for the unexpected: BECCA detects anomalies in video data
Brandon Rohrer
BECCA finds a stationary target
Brandon Rohrer
BECCA finds a stationary target at 3X speed
Brandon Rohrer
BECCA watches the X-men and Bruce Lee
Brandon Rohrer
BECCA plays Quidditch
Brandon Rohrer
BECCA chases a ball
Brandon Rohrer
BECCA chases a ball, part 2
Brandon Rohrer
Becca chases a ball, part 3
Brandon Rohrer
BECCA creates features from MNIST
Brandon Rohrer
How reinforcement learning works in Becca 7
Brandon Rohrer
Deep Learning Demystified
Brandon Rohrer
How Data Science Works
Brandon Rohrer
How Convolutional Neural Networks work
Brandon Rohrer
How Bayes Theorem works
Brandon Rohrer
How Deep Neural Networks Work
Brandon Rohrer
Recurrent Neural Networks (RNN) and Long Short-Term Memory (LSTM)
Brandon Rohrer
How Support Vector Machines work / How to open a black box
Brandon Rohrer
How autocorrelation works
Brandon Rohrer
Getting closer to human intelligence through robotics
Brandon Rohrer
A minimalist's guide to slicing and indexing pandas DataFrames
Brandon Rohrer
How decision trees work
Brandon Rohrer
Data scientist archetypes
Brandon Rohrer
How to use python's datetime package
Brandon Rohrer
How optimization for machine learning works, part 1
Brandon Rohrer
How optimization for machine learning works, part 2
Brandon Rohrer
How optimization for machine learning works, part 3
Brandon Rohrer
How optimization for machine learning works, part 4
Brandon Rohrer
How convolutional neural networks work, in depth
Brandon Rohrer
How to pick a machine learning model 4: Splitting the data
Brandon Rohrer
How to pick a machine learning model 3: Choosing a loss function
Brandon Rohrer
How to pick a machine learning model 2: Separating signal from noise
Brandon Rohrer
How to pick a machine learning model 1: Choosing between models
Brandon Rohrer
How to pick a machine learning model 5: Navigating assumptions
Brandon Rohrer
What do neural networks learn?
Brandon Rohrer
Interview with iRobot's Director of Data Science Angela Bassa
Brandon Rohrer
How Backpropagation Works
Brandon Rohrer
Evolutionary Powell's method: A discrete optimizer for hyperparameter optimization
Brandon Rohrer
1D convolution for neural networks, part 1: Sliding dot product
Brandon Rohrer
1D convolution for neural networks, part 2: Convolution copies the kernel
Brandon Rohrer
1D convolution for neural networks, part 3: Sliding dot product equations longhand
Brandon Rohrer
1D convolution for neural networks, part 4: Convolution equation
Brandon Rohrer
1D convolution for neural networks, part 5: Backpropagation
Brandon Rohrer
1D convolution for neural networks, part 6: Input gradient
Brandon Rohrer
1D convolution for neural networks, part 7: Weight gradient
Brandon Rohrer
1D convolution for neural networks, part 8: Padding
Brandon Rohrer
1D convolution for neural networks, part 9: Stride
Brandon Rohrer
The Four Grand Challenges of Robots in the Home
Brandon Rohrer
How Convolution Works
Brandon Rohrer
The Softmax neural network layer
Brandon Rohrer
Batch normalization
Brandon Rohrer
Getting ready to learn Python, Mac edition #1: Files and directories
Brandon Rohrer
More on: ML Maths Basics
View skill →Related Reads
📰
📰
📰
📰
In the last stage of my breast Cancer ANALYSIS , I also experimented with different evaluation…
Medium · Machine Learning
Teaching a Spiking Network to Hear
Medium · Machine Learning
Teaching a Spiking Network to Hear
Medium · Data Science
The Python Script I Built to Turn Messy Business Data Into a Machine That Worked for Me
Medium · Python
🎓
Tutor Explanation
DeepCamp AI