Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
doongz committed Feb 5, 2023
1 parent d23101b commit 54f3287
Show file tree
Hide file tree
Showing 48 changed files with 60 additions and 14 deletions.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file added Lecture-3 Image as input/1-cnn_v4.pdf
Binary file not shown.
File renamed without changes.
Binary file added Lecture-4 Sequence as input/1-self_v7.pdf
Binary file not shown.
Binary file added Lecture-4 Sequence as input/2-GNN.pdf
Binary file not shown.
Binary file not shown.
Binary file added Lecture-5 Sequence to sequence/2-seq2seq_v9.pdf
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
74 changes: 60 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@

### Lecture 3: Image as input

cnn

<img src="./images/image-20230205125441972.png" alt="image-20230205125441972" style="zoom:50%;" />

<img src="./images/image-20230205131700429.png" alt="image-20230205131700429" style="zoom:50%;" />

<img src="./images/image-20230205132102613.png" alt="image-20230205132102613" style="zoom:50%;" />

<img src="./images/image-20230205132131344.png" alt="image-20230205132131344" style="zoom:50%;" />

深度学习好在哪

ReLU 进行叠加 + 常数可代表任何方程
Expand All @@ -57,32 +67,68 @@ ReLU 进行叠加 + 常数可代表任何方程

<img src="./images/image-20230108232105650.png" alt="image-20230108232105650" style="zoom:50%;" />

Lecture 4: Sequence as input
### Lecture 4: Sequence as input

<img src="./images/image-20230205135807348.png" alt="image-20230205135807348" style="zoom:50%;" />

<img src="./images/image-20230205142626232.png" alt="image-20230205142626232" style="zoom:50%;" />

step-1 从 a_i 得到 q k v 的矩阵

<img src="./images/image-20230205143344853.png" alt="image-20230205143344853" style="zoom:50%;" />

step-2 K 和 Q 的矩阵乘 得到 A 矩阵

<img src="./images/image-20230205143822509.png" alt="image-20230205143822509" style="zoom:50%;" />

step-3 V 和 A 的矩阵乘得到 O 矩阵

<img src="./images/image-20230205144116182.png" alt="image-20230205144116182" style="zoom:50%;" />

并发能力由硬件提供,整个过程需要训练的是 q k v 的 weight 矩阵

<img src="./images/image-20230205144211354.png" alt="image-20230205144211354" style="zoom:50%;" />

<img src="./images/image-20230205151409655.png " alt="image-20230205151409655" style="zoom:50%;" />

<img src="./images/image-20230205151633597.png" alt="image-20230205151633597" style="zoom:50%;" />

self-attention vs CNN

- CNN 是 self-attention 的特例,CNN 的 receptive field 是固定的,self-attention 的 receptive field 是可变的,甚至是全图,甚至是可以训练的
- 训练集小的时候 CNN 效果好些,在大训练集上 self-attention 效果更好

<img src="./images/image-20230205152152888.png" alt="image-20230205152152888" style="zoom:50%;" />

self-attention vs RNN

- RNN 中的输入是有距离的(第一个输入在最后面的计算时慢慢会被遗忘),self-attention 中所有的输入都是平等的
- RNN 只能一个一个去算,self-attention 可以并行计算

### Lecture 5: Sequence to sequence

<img src="./images/image-20230115143207868.png" alt="image-20230115143207868" style="zoom: 33%;" />

<img src="./images/image-20230115143556724.png" alt="image-20230115143556724" style="zoom:33%;" />

Lecture 5: Sequence to sequence

Lecture 6: Generation
### Lecture 6: Generation

Recent Advance of Self-supervised learning for NLP
### Recent Advance of Self-supervised learning for NLP

Lecture 7: Self-supervised learning for Speech and Image
### Lecture 7: Self-supervised learning for Speech and Image

Lecture 8: Auto-encoder/ Anomaly Detection
### Lecture 8: Auto-encoder/ Anomaly Detection

Lecture 9: Explainable AI
### Lecture 9: Explainable AI

Lecture 10: Attack
### Lecture 10: Attack

Lecture 11: Adaptation
### Lecture 11: Adaptation

Lecture 12: Reinforcement Learning
### Lecture 12: Reinforcement Learning

Lecture 13: Network Compression
### Lecture 13: Network Compression

Lecture 14: Life-long Learning
### Lecture 14: Life-long Learning

Lecture 15: Meta Learning
### Lecture 15: Meta Learning
Binary file added images/image-20230205125441972.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230205131700429.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230205132102613.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230205132131344.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230205135807348.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230205142626232.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230205143344853.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230205143822509.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230205144116182.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230205144211354.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230205151409655.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230205151633597.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230205152152888.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 54f3287

Please sign in to comment.