Multilayer neuron network
This commit is contained in:
@@ -25,7 +25,7 @@ class NetworkPerceptron extends Perceptron
|
||||
}
|
||||
|
||||
// Hidden Layer
|
||||
for ($layerIndex = 0; $layerIndex < count($synaptic_weights) - 2; $layerIndex++) {
|
||||
for ($layerIndex = 0; $layerIndex < count($synaptic_weights) - 1; $layerIndex++) {
|
||||
$this->network[$layerIndex + 1] = [];
|
||||
|
||||
foreach ($synaptic_weights[$layerIndex] as $neuronWeights) {
|
||||
|
||||
Reference in New Issue
Block a user