alcalyn / 神经网络
创建一个多层感知器并让它学习生活。
dev-master
2017-04-11 16:13 UTC
This package is not auto-updated.
Last update: 2024-09-20 20:32:05 UTC
README
创建多层感知器并让它学习。
用法
use Alcalyn\NeuralNetwork\Network; # Creates a new multilayer perceptron $network = new Network([2, 4, 1]); # Takes an input and let it cogitate $network->pulseInput([1, 0]); # Returns an array as output # Takes an array of tuples input/expected output # and adjust the network one iteration to adapt the output the expected result $network->trainInput([[1, 0], [1]]); # Returns an array as output
示例
许可证
此库遵循MIT许可证。