Ruby編寫的易于使用的神經網絡庫:rb-brain
rb-brain
是一個采用Ruby開發,易于使用于的神經網絡庫。Here's an example of using it to approximate the XOR function:
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]
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!