fann_set_weight
(PECL fann >= 1.0.0)
fann_set_weight — 在網路中設定一個連線。
說明
fann_set_weight(
resource
int
int
float
): bool
resource
$ann,int
$from_neuron,int
$to_neuron,float
$weight): bool
在網路中設定一個連線。
參數
-
ann -
神經網路 資源。
-
from_neuron -
連線開始處的神經元。
-
to_neuron -
連線結束處的神經元。
-
weight -
連線權重。
返回值
成功時返回 true,其它情況下返回 false。