---
# System prepended metadata

title: Homework 4
tags: [homework, NTHU]

---

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

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

:::info
- **Deadline:** ⚠️2022.10.31 23:59
- **Name:** 楊長育
- **Student ID:** 110001601
:::

[ToC]

## 1. Optimization Methods

### Exercise 1 - update_parameters_with_gd (7pt)
![](https://i.imgur.com/w3WOLKC.png)
![](https://i.imgur.com/igdQKFv.png)


### Exercise 2 - random_mini_batches (7pt)
![](https://i.imgur.com/FdrJAyj.png)
![](https://i.imgur.com/zHlPatZ.png)
![](https://i.imgur.com/7BK6SSf.png)


### Exercise 3 - initialize_velocity (7pt)
![](https://i.imgur.com/iLJKMFa.png)
![](https://i.imgur.com/2o58p2V.png)

### Exercise 4 - update_parameters_with_momentum (7pt)
![](https://i.imgur.com/3dzNCdh.png)
![](https://i.imgur.com/JXY3rXA.png)

### Exercise 5 - initialize_adam (7pt)
![](https://i.imgur.com/I78aYb6.png)
![](https://i.imgur.com/khSbqvo.png)
![](https://i.imgur.com/1urSdqE.png)

### Exercise 6 - update_parameters_with_adam (7pt)
![](https://i.imgur.com/Jjdnbat.png)
![](https://i.imgur.com/zLYrya7.png)
![](https://i.imgur.com/ZLsVQHn.png)

### Exercise 7 - update_lr (7pt)
![](https://i.imgur.com/otM9qWe.png)

### Exercise 8 - schedule_lr_decay (7pt)
![](https://i.imgur.com/sOgjO1f.png)

---

## 2. Introduction to TensorFlow

### Exercise 1 - linear_function (7pt)
![](https://i.imgur.com/rdNpnfO.png)

### Exercise 2 - sigmoid (7pt)
![](https://i.imgur.com/dN366vC.png)
![](https://i.imgur.com/TpL8z9E.png)

### Exercise 3 - one_hot_matrix (7pt)
![](https://i.imgur.com/az1RhKd.png)

### Exercise 4 - initialize_parameters (7pt)
![](https://i.imgur.com/uAmCnsg.png)
![](https://i.imgur.com/qjPXQsj.png)

### Exercise 5 - forward_propagation (8pt)
![](https://i.imgur.com/L40JovA.png)
![](https://i.imgur.com/OZyX3kf.png)
![](https://i.imgur.com/CifCxvU.png)

### Exercise 6 - compute_cost (8pt)
![](https://i.imgur.com/47BYUP8.png)
![](https://i.imgur.com/tXjB9gP.png)
![](https://i.imgur.com/leT1qDg.png)


