Method | Description | |
---|---|---|
__construct ( integer $nodesNumber, string $nodeClass = Neuron::class, Phpml\NeuralNetwork\ActivationFunction $activationFunction = null ) | ||
addNode ( Phpml\NeuralNetwork\Node $node ) | ||
getNodes ( ) : Phpml\NeuralNetwork\Node[] |
Method | Description | |
---|---|---|
createNode ( string $nodeClass, Phpml\NeuralNetwork\ActivationFunction $activationFunction = null ) : |
public __construct ( integer $nodesNumber, string $nodeClass = Neuron::class, Phpml\NeuralNetwork\ActivationFunction $activationFunction = null ) | ||
$nodesNumber | integer | |
$nodeClass | string | |
$activationFunction | Phpml\NeuralNetwork\ActivationFunction |
public addNode ( Phpml\NeuralNetwork\Node $node ) | ||
$node | Phpml\NeuralNetwork\Node |
public getNodes ( ) : Phpml\NeuralNetwork\Node[] | ||
return | Phpml\NeuralNetwork\Node[] |