---
# System prepended metadata

title: Homework 5
tags: [NTHU, homework]

---

# Homework 5

> National Tsing Hua University
> Fall 2022 11110IPT 5530
> Deep Learning in Biomedical Optical Imaging

###### tags: `homework` `NTHU`

:::info
- **Deadline:** ⚠️2022.11.15 00:00
- **Name:** Xu, Wei-lun
- **Student ID:** 108003809
:::

[ToC]

## 1. Convolutional Neural Networks: Step by Step

### Exercise 1 - zero_pad (9pt)
![](https://i.imgur.com/IdDeuw0.png)
![](https://i.imgur.com/BCLHOIm.png)
![](https://i.imgur.com/Wk23i9Q.png)

### Exercise 2 - conv_single_step
![](https://i.imgur.com/aLChq3z.png)
![](https://i.imgur.com/g3Lc8xD.png)

### Exercise 3 - conv_forward (9pt)
![](https://i.imgur.com/9Z31UFR.png)
![](https://i.imgur.com/k7KGzDv.png)
![](https://i.imgur.com/0wygLFO.png)

### Exercise 4 - pool_forward (9pt)
![](https://i.imgur.com/HBHjYXJ.png)
![](https://i.imgur.com/lR9xtEl.png)

### Exercise 5 - conv_backward (9pt)
![](https://i.imgur.com/bb2R06C.png)
![](https://i.imgur.com/XHpo4tL.png)
![](https://i.imgur.com/Ca4Qw1z.png)
![](https://i.imgur.com/SK7OKX2.png)

### Exercise 6 - create_mask_from_window (9pt)
![](https://i.imgur.com/MPrjzvH.png)
![](https://i.imgur.com/gtOs2th.png)

### Exercise 7 - distribute_value (9pt)
![](https://i.imgur.com/Ucy6ef9.png)
![](https://i.imgur.com/pN2oYy9.png)

### Exercise 8 - pool_backward (9pt)
![](https://i.imgur.com/U5Yz9nj.png)
![](https://i.imgur.com/6tskAqS.png)
![](https://i.imgur.com/uOFCBgb.png)
![](https://i.imgur.com/VqSlE7e.png)
![](https://i.imgur.com/yGnjSx7.png)
![](https://i.imgur.com/stJDzQP.png)

## 2. Residual Networks

### Exercise 1 - identity_block (9pt)
![](https://i.imgur.com/YXenk5e.png)
![](https://i.imgur.com/mPIPoH4.png)
![](https://i.imgur.com/1PXjWL2.png)

### Exercise 2 - convolutional_block
![](https://i.imgur.com/2yz3YdM.png)
![](https://i.imgur.com/SsUNL6d.png)
![](https://i.imgur.com/EyqPZIH.png)

### Exercise 3 - ResNet50 (10pt)
![](https://i.imgur.com/X3PgKAf.png)
![](https://i.imgur.com/1IGSnij.png)
![](https://i.imgur.com/o0gCmCA.png)
