Example #1
0
File: Network.php Project: 0-php/AI
 /**
  * @param array $arrOutputs
  * @uses Exception::__construct()
  * @uses Layer::getNeuronsCount()
  * @throws Exception
  */
 protected function setOutputs($arrOutputs)
 {
     if (isset($arrOutputs[0]) && is_array($arrOutputs[0])) {
         if (count($arrOutputs[0]) != $this->objOutputLayer->getNeuronsCount()) {
             throw new Exception('Count of arrOutputs doesn\'t fit to number of arrOutputs on instantiation of \\' . __NAMESPACE__ . '\\Network');
         }
     }
     $this->arrOutputs = $arrOutputs;
     $this->boolNetworkActivated = FALSE;
 }