5.6.11 · D3 · HinglishMachine Learning (Aerospace Applications)

Worked examplesConvolutional neural networks — convolution operation, pooling

3,366 words15 min read↑ Read in English

5.6.11 · D3 · Coding › Machine Learning (Aerospace Applications) › Convolutional neural networks — convolution operation, pooli

Yeh Convolutional neural networks — convolution & pooling ka worked-examples deep dive hai. Parent note ne tumhe formulas diye; yahan hum unhe har case class ke against stress-test karte hain — output ka har sign, har degenerate input, stride aur padding ka limiting behaviour, ek real aerospace word problem, aur ek exam twist.

Shuru karne se pehle, do formulas ka ek reminder jo neeche sab kuch support karta hai. Agar koi bhi symbol unfamiliar lage, parent dobara padho — lekin hum har ek ko jab aata hai tab re-explain karte hain.

Recall Teen parent-page facts jis par hum rely karte hain (taaki parent open na rakhna pade)

Parent ne common mistakes list ki thi; hum teen ko naam se cite karte hain. Seedhi baat mein:

  • Pooling ke zero learnable parameters hote hain — max/average ek fixed function hai, train nahi hoti.
  • Stride sirf ek speed knob nahi hai — bada size formula ke through output ko directly shrink karta hai.
  • Conv parameters image size se independent hain — ye sirf par depend karte hain, kabhi par nahi.

Scenario matrix

Is topic ke har problem ka type in cells mein se kisi ek mein aata hai. Neeche ke examples is tarah choose kiye gaye hain ki milkar wo har row ko touch karte hain.

# Case class Isme tricky kya hai Covered by
A Padding size preserve karta hai (p aise choose ki ) "same" convolution — kya arithmetic exact hai? Ex 1
B Non-divisible / floor kick karta hai ka multiple nahi → rounding down ek position lose karta hai Ex 2
C Negative output value ek kernel jo produce kare — signs matter karte hain, clipping nahi Ex 3
D Degenerate: kernel, stride 1 kya convolution kuch "kar" bhi rahi hai? Ex 4
E Limiting stride: (no overlap) & shrink stride kitna push kar sakta hai output ke 1 hit hone se pehle? Ex 5
F Multi-channel filter (depth par sum) parameter count aur extra sum Ex 6
G Pooling: max vs average, ek shift ke saath invariance prove karne ke liye kya max sach mein nahi hilta? Ex 7
H Real aerospace word problem (crack-detector sizing) words → numbers → layer stack translate karo Ex 8
I Exam twist: ek unknown ( ya ) solve karo target size se formula invert karo Ex 9
J Zero/empty degenerate: kernel input se bada kab hota hai (invalid)? Ex 10

Worked examples

Example 1 — Cell A: padding jo size preserve karta hai


Example 2 — Cell B: floor bite karta hai


Example 3 — Cell C: genuinely negative output


Example 4 — Cell D: degenerate kernel


Example 5 — Cell E: stride apni limit tak push hota hai


Example 6 — Cell F: multi-channel filter


Example 7 — Cell G: pooling, aur shift ke under invariance prove karna

Figure — Convolutional neural networks — convolution operation, pooling

Example 8 — Cell H: aerospace word problem (crack detector)


Example 9 — Cell I: exam twist — unknown ke liye solve karo


Example 10 — Cell J: empty / invalid case


Recall

Recall Scenario checklist

Kisi bhi conv/pool answer par trust karne se pehle, kaun si chaar cheezein sanity-check karte ho? ::: Output ka sign (pre-activation negative ho sakta hai), floor jab numerator stride se divisible na ho, yeh ki ho (warna invalid), aur yeh ki pooling ke zero parameters hote hain. Stride 1 ke liye "Same" padding rule ::: , jo banata hai. Stride kab force karta hai? ::: Jab ho ( ke saath): kernel sirf position 0 par land karta hai. kya stand karta hai? ::: Conv layer mein filters ki number, yaani output channels/feature maps ki number jo woh produce karta hai.

Connections

  • Parent topic — yahan work kiye gaye formulas.
  • Padding and stride — Examples 1, 2, 5, 9, 10 sab iske edge cases hain.
  • Feature maps and receptive fields — yahan compute kiya gaya har ek feature-map dimension hai.
  • Translation equivariance vs invariance — Example 7 ka shift test invariance demo hai.
  • Image classification for aerospace inspection — Example 8 ek real detector size karta hai.
  • Fully-connected neural networks — Example 8 mein comparison.
  • Backpropagation — poore document mein count kiye gaye shared weights train karta hai.