Activation Function(激活函數)
Activation Function,就是把計算好了的輸入值standardize 好,規範它的「輸出數值之範圍」,「輸出數值的相互關係」。
為何需要激活函數?
Activation functions are crucial components of neural networks that introduce non-linearity, enabling them to learn complex patterns in data.
若只有線性關係,模型不論有多少層,最終都等效於單層線性變換,只能學到直線或平面關係,無法處理複雜邊界。
有了非線性(例如 ReLU、Sigmoid、Tanh),模型才能擬合曲線、分段函數等複雜結構,進而應對圖像辨識、語音識別等高難度任務。
根據不同的任務可選擇合適的激活函數,例如:
