略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: fann_cascadetrain_on_file

2024-05-05

fann_cascadetrain_on_file

(PECL fann >= 1.0.0)

fann_cascadetrain_on_file读取文件并在整个数据集上训练,使用 Cascade2 训练算法训练一段时间。

说明

fann_cascadetrain_on_file(
    resource $ann,
    string $filename,
    int $max_neurons,
    int $neurons_between_reports,
    float $desired_error
): bool

fann_cascadetrain_on_data() 函数做一样的工作,但是该函数是直接从文件读取训练数据的。

参数

ann

神经网络 资源

filename

添加在神经网络中神经元的最大数量。

max_neurons

在打印状态报告到标准输出之间的神经元数量。0值表示没有报告打印。

neurons_between_reports

打印状态报告之间的神经元数量。0值表示没有报告打印。

desired_error

期望的 fann_get_MSE() 值或者 fann_get_bit_fail() 值, 取决于 fann_set_train_stop_function() 函数选择的停止函数。

返回值

成功时返回 true,其它情况下返回 false

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.fann-cascadetrain-on-file.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3