コード例 #1
0
 /**
  *
  * @return int The total number of neurons on this layer, includes context, bias
  *         and regular.
  */
 public function getTotalCount()
 {
     if ($this->contextFedBy == null) {
         return $this->getCount() + ($this->hasBias() ? 1 : 0);
     } else {
         return $this->getCount() + ($this->hasBias() ? 1 : 0) + $this->contextFedBy->getCount();
     }
 }
コード例 #2
0
 public function getActivationFunction()
 {
     return parent::getActivation();
 }