---
# System prepended metadata

title: Homework 1
tags: [homework, NTHU]

---

# Homework 1

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

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

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

[ToC]

## 1. Python Basics with Numpy

### Exercise 1
![](https://i.imgur.com/kP74HTx.png)
![](https://i.imgur.com/zHqvE3p.png)

### Exercise 2 - basic_sigmoid
![](https://i.imgur.com/YHFis4U.png)
![](https://i.imgur.com/uhfnvc5.png)

### Exercise 3 - sigmoid
![](https://i.imgur.com/9HTd5aa.png)

### Exercise 4 - sigmoid_derivative
![](https://i.imgur.com/aueMCEm.png)

### Exercise 5 - image2vector
![](https://i.imgur.com/EwfdShm.png)
![](https://i.imgur.com/FpdCqyO.png)

### Exercise 6 - normalize_rows
![](https://i.imgur.com/zJiJo9l.png)
![](https://i.imgur.com/mSrkgFD.png)

### Exercise 7 - softmax
![](https://i.imgur.com/AL5EX7y.png)
![](https://i.imgur.com/CXuSqpG.png)

### Exercise 8 - L1
![](https://i.imgur.com/NxE2W54.png)
![](https://i.imgur.com/XZI3TBP.png)

### Exercise 9 - L2
![](https://i.imgur.com/jHEvOFf.png)
![](https://i.imgur.com/HzbXZz0.png)

---

## 2. Logistic Regression with a Neural Network Mindset

### Exercise 1
![](https://i.imgur.com/ThwbqnR.png)

### Exercise 2
![](https://i.imgur.com/Dop84cz.png)

### Exercise 3 - sigmoid
![](https://i.imgur.com/sjp9u0E.png)
![](https://i.imgur.com/3chbc4H.png)

### Exercise 4 - initialize_with_zeros
![](https://i.imgur.com/RwEDNKk.png)
![](https://i.imgur.com/PI7TvUP.png)

### Exercise 5 - propagate
![](https://i.imgur.com/nzPB7Qm.png)
![](https://i.imgur.com/J1v0ChM.png)

### Exercise 6 - optimize
![](https://i.imgur.com/Pvrnkqt.png)
![](https://i.imgur.com/CHlVcQF.png)
![](https://i.imgur.com/adTz8rf.png)

### Exercise 7 - predict
![](https://i.imgur.com/6t5y82M.png)
![](https://i.imgur.com/fTYU5NU.png)

### Exercise 8 - model
![](https://i.imgur.com/1MGiWPB.png)
![](https://i.imgur.com/H6N8C06.png)
![](https://i.imgur.com/74Z43dK.png)
![](https://i.imgur.com/U3oN4Xo.png)
![](https://i.imgur.com/i9bJyLy.png)
![](https://i.imgur.com/cYakwnY.png)
![](https://i.imgur.com/v52fzfM.png)
![](https://i.imgur.com/XnAETQ8.png)




