Beispiel #1
0
 /**
  * Test Weight Correction after sending signal. Direction Should be always Reverse
  * @param $signal
  * @param $weight
  * @dataProvider prepareSendingData
  * @depends testDirectSend
  * @depends testReverseSend
  */
 public function testWeightCorrection($signal, $weight)
 {
     Net::setDirection(Net::REVERSE);
     //signal propagation
     $this->_to->setValue($signal);
     $this->_from->setValue($this->_oldValue);
     $this->_relation->setWeight($weight);
     $this->_relation->send($this->_to);
     //Test whether weight correction is null or no
     $this->assertNotEquals($weight, $this->getWeightFromRelation($this->_relation), "Back Propagation Stuck");
 }