Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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

(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