简体   繁体   English

Brainjs 动态数组

[英]Brainjs dynamique array

Quick question about BrainJs -> In server side.关于 BrainJs 的快速问题 -> 在服务器端。 I'm doing a neuronal that works with string so I encode everything and fill the shorter array with 0 values.我正在做一个处理字符串的神经元,所以我对所有内容进行编码并用 0 值填充较短的数组。 But I'm wondering something.What if the user writes a string longer than all the strings I used in my dataset ?但我想知道一些东西。如果用户写的字符串比我在数据集中使用的所有字符串都长怎么办? So I tried and it didn't crash but I'm wondering if Brainjs is using all the value of the new longer string?所以我试过了,它没有崩溃,但我想知道 Brainjs 是否使用了新的更长字符串的所有值?

Thanks in advance for the information!提前感谢您提供的信息!

So after some tests this is my conclusion.所以经过一些测试,这是我的结论。

The longest array in my dataset is a size of 10, after the training the AI thinks this array is a class 1 at 0.987... chances.我的数据集中最长的数组大小为 10,经过训练后,AI 认为该数组为 1 类,概率为 0.987……。

I try to give an array of size 50 to the AI, but the 10 first digits are the same as the first array.我尝试为 AI 提供一个大小为 50 的数组,但前 10 个数字与第一个数组相同。 The AI answer class 1 at 0.987... chances (In fact this is exactly the same result than before). AI 在 0.987 处回答第 1 类......机会(实际上这与以前的结果完全相同)。 That seems logic, I think other digit of the array are ignored because of the lack of the neurons.这似乎是合乎逻辑的,我认为由于缺乏神经元,数组的其他数字被忽略了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM