函式名稱:fann_get_cascade_weight_multiplier()
適用版本:FANN >= 2.2.0
函式說明:獲取級聯訓練時的權重乘積器。
用法:
float fann_get_cascade_weight_multiplier(resource $ann);
引數:
$ann
:神經網路資源,由 fann_create_standard() 或 fann_create_shortcut() 建立。
返回值:
返回 float 型別的權重乘積器值。
示例:
$ann = fann_create_standard(3, 2, 1);
$weight_multiplier = fann_get_cascade_weight_multiplier($ann);
echo "權重乘積器:" . $weight_multiplier;
輸出:
權重乘積器:0.4
說明:
fann_get_cascade_weight_multiplier() 函式用於獲取神經網路在級聯訓練過程中的權重乘積器。權重乘積器是一個應用於新連線權重的乘法因子,它透過級聯訓練過程中動態增加連線權重來提高神經網路的效能。
請注意,該函式僅適用於 FANN >= 2.2.0 版本。