Deprecated: Optional parameter $keys declared before required parameter $cms_id is implicitly treated as a required parameter in /home/www/dev/work/class/blog/CmsKey.php on line 75

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$title is deprecated in /home/www/dev/work/website/lvesu/class/controller/blog/php.php on line 28

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$outlink is deprecated in /home/www/dev/work/website/lvesu/template/blog/cms/php.manual.tpl on line 2

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$status is deprecated in /home/www/dev/work/website/lvesu/template/blog/index.head.php on line 2
PHP - Manual: fann_create_train - 互联网笔记

略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: fann_create_train

2025-05-14

fann_create_train

(PECL fann >= 1.0.0)

fann_create_train创建一个空的训练数据结构。

说明

fann_create_train(int $num_data, int $num_input, int $num_output): resource

创建一个空的训练数据结构。

参数

num_data

训练数据的数量。

num_input

每个训练数据集输入的数量。

num_output

每个训练数据集输出的数量。

返回值

成功时返回训练数据 资源,发生错误返回 false

注释

注意:

This function is only available if the fann extension has been build against libfann >= 2.2.

参见

添加备注

用户贡献的备注 1 note

up
3
geekgirl dot joy at gmail dot com
6 years ago
The result of fann_create_train() is a "blank" or "empty" training data resource which can be saved to a file using fann_save_train().

<?php

$num_data
= 4;
$num_input = 2;
$num_output = 1;

// Create an empty 'template' training resource in memory
$empty_training_resource = fann_create_train ($num_data , $num_input , $num_output);

// Save template.data
fann_save_train($empty_training_resource, 'template.data');

?>

File Saved (template.data):
4 2 1
0 0
0
0 0
0
0 0
0
0 0
0

官方地址:https://www.php.net/manual/en/function.fann-create-train.php

冷却塔厂家 广告
中文GPT4.0无需注册 广告
北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3