(PECL fann >= 1.0.0)
fann_get_activation_steepness — 為提供的神經(jīng)和網(wǎng)絡層數(shù)返回激活陡度
$ann, int $layer, int $neuron): float
獲取神經(jīng)元數(shù)為 neuron 層數(shù)為
layer神經(jīng)網(wǎng)絡的激活陡度,將輸入層數(shù)計為1層。
在輸入層中是不可能獲取激活陡度。
激活函數(shù)的陡度表明了激活函數(shù)從最小到最大有多塊。一個高值表明將會提供一個更高效的訓練。
在訓練神經(jīng)網(wǎng)絡時,輸出值應該處于極端(通常是 0 和 1,取決于激勵函數(shù)),一般陡峭的激活函數(shù)將會被使用(比如為1.0時)。
默認的激活陡度是0.5.
ann神經(jīng)網(wǎng)絡 資源。
layer層數(shù)
neuron神經(jīng)元數(shù)
激活陡度,當神經(jīng)元在神經(jīng)網(wǎng)絡中沒定義時為-1,錯誤時返回 false .