/** * @param \Sereban\NeuronNet\Neuron $to * @param \Sereban\NeuronNet\Neuron $from * @return bool */ protected function _weightCorrection(Neuron $to, Neuron $from) { $weightDiff = self::ACCELERATOR * $from->getValue() * $to->getValue(); $this->_weight += $weightDiff; //increase weight return true; }