| Total Complexity | 12 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | abstract class LayeredNetwork implements Network |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var Layer[] |
||
| 16 | */ |
||
| 17 | protected $layers = []; |
||
| 18 | |||
| 19 | public function addLayer(Layer $layer): void |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return Layer[] |
||
| 26 | */ |
||
| 27 | public function getLayers(): array |
||
| 30 | } |
||
| 31 | |||
| 32 | public function removeLayers(): void |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getOutputLayer(): Layer |
||
| 38 | { |
||
| 39 | return $this->layers[count($this->layers) - 1]; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getOutput(): array |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param mixed $input |
||
| 54 | */ |
||
| 55 | public function setInput($input): Network |
||
| 74 | } |
||
| 75 | } |
||
| 76 |