pyfann中训练数据的格式是什么? [英] What is the format of training data in pyfann?

查看:80
本文介绍了pyfann中训练数据的格式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

pyfann中限制数据的格式是什么?具体来说,我想使用pyfann的init_weight函数,但是它没有范围,但是可以从转换数据中找到范围.因此,我想创建一个小的伪数据集,该数据集的最低和最高值应与程序中的预期值相同.

What is the format of thraining data in pyfann? Concretely I would like to use the init_weight function of pyfann, but it does not take a range, but finds the range from traning data. Therefore I would like to create a small fake dataset, which has the lowest and the highes value of what can be expected in the programm.

推荐答案

Frist Line,3个参数:要训练的数据数,输入数,输出数 从那里开始,输入一行,输出一行,例如(AND逻辑矩阵):

Frist Line, 3 arguments: number of data to train, number of inputs, number of outputs from there, goes one line of inputs and one of outputs e.g. (AND logic matrix):

4 2 1    
1 1    
1    
0 1    
0    
0 0    
0    
1 0    
0  

以上:

  • 要训练的4个数据:

  • 4 datas to train:

1 AND 1 = 1
0 AND 1 = 0
0 AND 0 = 0
1 AND 0 = 0

1 AND 1 = 1
0 AND 1 = 0
0 AND 0 = 0
1 AND 0 = 0

2个输入

1个输出

这篇关于pyfann中训练数据的格式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆