fann_create_standard_array

(PECL fann >= 1.0.0)

fann_create_standard_array創(chuàng)建一個全連接的反向傳播神經(jīng)網(wǎng)絡,該網(wǎng)絡使用一個表示每層大小的數(shù)組來構造。

說明

fann_create_standard_array(int $num_layers, array $layers): resource

創(chuàng)建一個標準的全連接反向傳播神經(jīng)網(wǎng)絡。

每一層都將會有一個偏置神經(jīng)元 (除了輸出層),該偏置神經(jīng)元將會連接下一層所有的神經(jīng)元。當運行網(wǎng)絡時,偏置神經(jīng)節(jié)點一直發(fā)出1信號。

請使用 fann_destroy() 函數(shù)來銷毀神經(jīng)網(wǎng)絡。

參數(shù)

num_layers

神經(jīng)網(wǎng)絡層數(shù),包括輸入輸出層。

layers

表示每層大小的數(shù)組。

返回值

成功則返回神經(jīng)網(wǎng)絡,錯誤則返回 false .

參見

  • fann_create_standard() - 創(chuàng)建標準的全連接反向傳播神經(jīng)網(wǎng)絡。
  • fann_create_sparse() - 創(chuàng)建一個標準的反向傳播神經(jīng)網(wǎng)絡,該網(wǎng)絡不是全連接。
  • fann_create_shortcut() - 創(chuàng)建一個含快捷連接而非全連接的標準反向傳播神經(jīng)網(wǎng)絡。