Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400]

(no description)

File Size: 231 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

MultilayerPerceptron:: (16 methods):
  __construct()
  train()
  partialTrain()
  setLearningRate()
  getOutput()
  getLearningRate()
  getBackpropagation()
  reset()
  initNetwork()
  addInputLayer()
  addNeuronLayers()
  generateSynapses()
  addBiasNodes()
  generateLayerSynapses()
  generateNeuronSynapses()
  trainSamples()


Class: MultilayerPerceptron  - X-Ref

__construct(int $inputLayerFeatures,array $hiddenLayers,array $classes,int $iterations = 10000,?ActivationFunction $activationFunction = null,float $learningRate = 1.)   X-Ref


train(array $samples, array $targets)   X-Ref
No description

partialTrain(array $samples, array $targets, array $classes = [])   X-Ref


setLearningRate(float $learningRate)   X-Ref
No description

getOutput()   X-Ref
No description

getLearningRate()   X-Ref
No description

getBackpropagation()   X-Ref
No description

reset()   X-Ref

return: mixed

initNetwork()   X-Ref
No description

addInputLayer(int $nodes)   X-Ref
No description

addNeuronLayers(array $layers, ?ActivationFunction $defaultActivationFunction = null)   X-Ref
No description

generateSynapses()   X-Ref
No description

addBiasNodes()   X-Ref
No description

generateLayerSynapses(Layer $nextLayer, Layer $currentLayer)   X-Ref
No description

generateNeuronSynapses(Layer $currentLayer, Neuron $nextNeuron)   X-Ref
No description

trainSamples(array $samples, array $targets)   X-Ref
No description