深度學習

1 激活函數 1.1 階躍函數 python代碼實現: def step_function(x): y = x > 0 return y.astype(np.int) 對NumPy數組進行不等號運算後 ,數組的各個元素生成一個布爾型數組。 astype()方法轉換NumPy數組的類型,數組y的元素類型從布爾型轉換爲int型。 圖1 階躍函數的圖形 1.2 sigmoid 函數 sigmoid
相關文章
相關標籤/搜索