예제 #1
0
파일: Network.php 프로젝트: 0-php/AI
 /**
  * @param integer $intKeyInput
  * @return array
  * @uses activate()
  * @uses Layer::getOutputs()
  * @uses Layer::getThresholdOutputs()
  * @uses setInputsToTrain()
  */
 public function getOutputsByInputKey($intKeyInput)
 {
     $this->setInputsToTrain($this->arrInputs[$intKeyInput]);
     $this->activate();
     switch ($this->intOutputType) {
         case self::OUTPUT_LINEAR:
             return $this->objOutputLayer->getOutputs();
         case self::OUTPUT_BINARY:
             return $this->objOutputLayer->getThresholdOutputs();
     }
 }