PHP Class Phpml\Regression\MLPRegressor

Inheritance: implements Regression, use trait Phpml\Helper\Predictable
ファイルを表示 Open project: php-ai/php-ml

Public Methods

Method Description
__construct ( array $hiddenLayers = [10], float $desiredError = 0.01, integer $maxIterations = 10000, Phpml\NeuralNetwork\ActivationFunction $activationFunction = null )
train ( array $samples, array $targets )

Protected Methods

Method Description
predictSample ( array $sample ) : array

Method Details

__construct() public method

public __construct ( array $hiddenLayers = [10], float $desiredError = 0.01, integer $maxIterations = 10000, Phpml\NeuralNetwork\ActivationFunction $activationFunction = null )
$hiddenLayers array
$desiredError float
$maxIterations integer
$activationFunction Phpml\NeuralNetwork\ActivationFunction

predictSample() protected method

protected predictSample ( array $sample ) : array
$sample array
return array

train() public method

public train ( array $samples, array $targets )
$samples array
$targets array