PHP Class Phpml\NeuralNetwork\Layer

Show file Open project: php-ai/php-ml Class Usage Examples

Public Methods

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

Private Methods

Method Description
createNode ( string $nodeClass, Phpml\NeuralNetwork\ActivationFunction $activationFunction = null ) : Neuron

Method Details

__construct() public method

public __construct ( integer $nodesNumber, string $nodeClass = Neuron::class, Phpml\NeuralNetwork\ActivationFunction $activationFunction = null )
$nodesNumber integer
$nodeClass string
$activationFunction Phpml\NeuralNetwork\ActivationFunction

addNode() public method

public addNode ( Phpml\NeuralNetwork\Node $node )
$node Phpml\NeuralNetwork\Node

getNodes() public method

public getNodes ( ) : Phpml\NeuralNetwork\Node[]
return Phpml\NeuralNetwork\Node[]