Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
Phpml\Classification\MLPClassifier Class Reference
Inheritance diagram for Phpml\Classification\MLPClassifier:
Phpml\NeuralNetwork\Network\MultilayerPerceptron Phpml\Classification\Classifier Phpml\NeuralNetwork\Network\LayeredNetwork Phpml\Estimator Phpml\IncrementalEstimator Phpml\Estimator Phpml\NeuralNetwork\Network

Public Member Functions

 addLayer (Layer $layer)
 
 getBackpropagation ()
 
 getLayers ()
 
 getLearningRate ()
 
 getOutput ()
 
 getOutputLayer ()
 
 getTargetClass ($target)
 
 partialTrain (array $samples, array $targets, array $classes=[])
 
 predict (array $samples)
 
 removeLayers ()
 
 setInput ($input)
 
 setLearningRate (float $learningRate)
 
 train (array $samples, array $targets)
 

Protected Member Functions

 predictSample (array $sample)
 
 reset ()
 
 trainSample (array $sample, $target)
 

Protected Attributes

ActivationFunction null $activationFunction
 
Backpropagation $backpropagation
 
array $classes = []
 
Layer[] $layers = []
 

Member Function Documentation

◆ addLayer()

Phpml\NeuralNetwork\Network\LayeredNetwork::addLayer ( Layer $layer)
inherited

◆ getLayers()

Phpml\NeuralNetwork\Network\LayeredNetwork::getLayers ( )
inherited
Return values
Layer[]

Implements Phpml\NeuralNetwork\Network.

◆ getOutput()

Phpml\NeuralNetwork\Network\MultilayerPerceptron::getOutput ( )
inherited

◆ partialTrain()

Phpml\NeuralNetwork\Network\MultilayerPerceptron::partialTrain ( array $samples,
array $targets,
array $classes = [] )
inherited
Exceptions
InvalidArgumentException

Implements Phpml\IncrementalEstimator.

◆ predict()

Phpml\Estimator::predict ( array $samples)
inherited

Implemented in Phpml\Pipeline.

◆ predictSample()

Phpml\Classification\MLPClassifier::predictSample ( array $sample)
protected
Return values
mixed

Reimplemented from Phpml\NeuralNetwork\Network\MultilayerPerceptron.

◆ setInput()

Phpml\NeuralNetwork\Network\LayeredNetwork::setInput ( $input)
inherited
Parameters
mixed$input

Implements Phpml\NeuralNetwork\Network.

◆ train()

Phpml\NeuralNetwork\Network\MultilayerPerceptron::train ( array $samples,
array $targets )
inherited

Implements Phpml\Estimator.

◆ trainSample()

Phpml\Classification\MLPClassifier::trainSample ( array $sample,
$target )
protected
Parameters
mixed$target

Reimplemented from Phpml\NeuralNetwork\Network\MultilayerPerceptron.


The documentation for this class was generated from the following file: