1 | <?php |
||
12 | abstract class LayeredNetwork implements Network |
||
13 | { |
||
14 | /** |
||
15 | * @var Layer[] |
||
16 | */ |
||
17 | protected $layers; |
||
18 | |||
19 | /** |
||
20 | * @param Layer $layer |
||
21 | */ |
||
22 | public function addLayer(Layer $layer) |
||
26 | |||
27 | /** |
||
28 | * @return Layer[] |
||
29 | */ |
||
30 | public function getLayers(): array |
||
34 | |||
35 | /** |
||
36 | * @return void |
||
37 | */ |
||
38 | public function removeLayers() |
||
42 | |||
43 | /** |
||
44 | * @return Layer |
||
45 | */ |
||
46 | public function getOutputLayer(): Layer |
||
50 | |||
51 | /** |
||
52 | * @return array |
||
53 | */ |
||
54 | public function getOutput(): array |
||
63 | |||
64 | /** |
||
65 | * @param mixed $input |
||
66 | * |
||
67 | * @return $this |
||
68 | */ |
||
69 | public function setInput($input) |
||
89 | } |
||
90 |