PHP Class Phpml\NeuralNetwork\Training\Backpropagation

Inheritance: implements Phpml\NeuralNetwork\Training
ファイルを表示 Open project: php-ai/php-ml Class Usage Examples

Public Methods

Method Description
__construct ( Phpml\NeuralNetwork\Network $network, integer $theta = 1 )
train ( array $samples, array $targets, float $desiredError = 0.001, integer $maxIterations = 10000 )

Private Methods

Method Description
getPrevSigma ( Neuron $neuron ) : float
getSigma ( Neuron $neuron, array $target, integer $key, boolean $lastLayer ) : float
isResultWithinError ( array $result, array $target, float $desiredError ) : boolean
trainSample ( array $sample, array $target )
trainSamples ( array $samples, array $targets, float $desiredError ) : integer

Method Details

__construct() public method

public __construct ( Phpml\NeuralNetwork\Network $network, integer $theta = 1 )
$network Phpml\NeuralNetwork\Network
$theta integer

train() public method

public train ( array $samples, array $targets, float $desiredError = 0.001, integer $maxIterations = 10000 )
$samples array
$targets array
$desiredError float
$maxIterations integer