rb-brain:一个用 ruby​​ 编写的易于使用的神经网络库

时间:2021-07-05 08:43:16
【文件属性】:
文件名称:rb-brain:一个用 ruby​​ 编写的易于使用的神经网络库
文件大小:12KB
文件格式:ZIP
更新时间:2021-07-05 08:43:16
Ruby rb-大脑 rb-brain是一个用 Ruby 编写的易于使用的库。 这是使用它来近似 XOR 函数的示例: require 'brain' net = Brain :: NeuralNetwork . new net . train ( [ { input : [ 0 , 0 ] , output : [ 0 ] } , { input : [ 0 , 1 ] , output : [ 1 ] } , { input : [ 1 , 0 ] , output : [ 1 ] } , { input : [ 1 , 1 ] , output : [ 0 ] } ] ) output = net . run ( [ 1 , 0 ] ) # [0.948] 安装 安装最新版本: gem install rb-brain
【文件预览】:
rb-brain-master
----.gitignore(6B)
----.rspec(53B)
----LICENSE(1KB)
----spec()
--------supports()
--------spec_helper.rb(163B)
--------lib()
----README.md(4KB)
----lib()
--------brain()
--------brain.rb(30B)
----rb-brain.gemspec(774B)
----Gemfile(148B)
----Rakefile(116B)
----Gemfile.lock(721B)

网友评论