fann_set_callback

(PECL fann >= 1.0.0)

fann_set_callback锟斤拷锟斤拷训锟斤拷锟节硷拷使锟矫的回碉拷锟斤拷锟斤拷锟斤拷

说锟斤拷

fann_set_callback ( resource $ann , collable $callback ) : bool

锟斤拷锟斤拷训锟斤拷锟节硷拷使锟矫的回碉拷锟斤拷锟斤拷锟斤拷 锟斤拷锟斤拷味锟斤拷锟斤拷锟斤拷fann_train_on_data() 锟斤拷 fann_train_on_file()锟斤拷锟矫★拷

锟斤拷锟斤拷

ann

Neural network resource.

callback

锟结供锟侥回碉拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟铰诧拷锟斤拷锟斤拷

  • ann - 锟斤拷锟斤拷锟斤拷 resource
  • train - 训锟斤拷锟斤拷锟斤拷 resource 锟斤拷锟斤拷 锟斤拷锟斤拷 fann_train_on_file()NULL
  • max_epochs - 训锟斤拷锟斤拷锟斤拷锟叫碉拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟�
  • epochs_between_reports - 锟节碉拷锟矫该猴拷锟斤拷之前训锟斤拷锟斤拷锟叫碉拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟�
  • desired_error - 锟斤拷锟斤拷锟斤拷 fann_get_MSE() 锟斤拷锟斤拷 fann_get_bit_fail(), 取锟斤拷锟斤拷fann_set_train_stop_function()锟斤拷锟斤拷选锟斤拷锟酵V癸拷锟斤拷锟斤拷锟�
  • epochs - The current epoch

锟截碉拷锟斤拷锟结返锟斤拷 TRUE. 锟斤拷锟斤拷锟斤拷锟� FALSE, 锟斤拷锟斤拷训锟斤拷锟斤拷锟斤拷锟斤拷止锟斤拷

锟斤拷锟斤拷值

Returns TRUE on success, or FALSE otherwise.

锟轿硷拷

  • fann_train_on_data() - 锟斤拷锟斤拷锟斤拷锟斤拷锟捷硷拷锟斤拷训锟斤拷一锟斤拷时锟戒。
  • fann_train_on_file() - 锟节达拷某锟斤拷锟侥硷拷锟斤拷取锟斤拷锟斤拷锟斤拷锟斤拷锟捷硷拷锟斤拷训锟斤拷一锟斤拷时锟戒。