PHP Class Phpml\Regression\MLPRegressor

Inheritance: implements Regression, use trait Phpml\Helper\Predictable
Afficher le fichier Open project: php-ai/php-ml

Méthodes publiques

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

Méthodes protégées

Méthode Description
predictSample ( array $sample ) : array

Method Details

__construct() public méthode

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 méthode

protected predictSample ( array $sample ) : array
$sample array
Résultat array

train() public méthode

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