Deep Learning เบื้องต้นด้วย PyTorch
Jasmin Ludolf
Senior Data Science Content Developer, DataCamp
$$

$$

ฟังก์ชัน Sigmoid:
Gradient:
$$
ฟังก์ชัน Softmax ก็ประสบปัญหา Saturation เช่นกัน

Rectified Linear Unit (ReLU):
f(x) = max(x, 0)$$
ใน PyTorch:
relu = nn.ReLU()

Leaky ReLU:
$$
ใน PyTorch:
leaky_relu = nn.LeakyReLU(
negative_slope = 0.05)

Deep Learning เบื้องต้นด้วย PyTorch