@@ -142,6 +142,9 @@ |
||
142 | 142 | $this->addLayer(new Layer($nodes, Input::class)); |
143 | 143 | } |
144 | 144 | |
145 | + /** |
|
146 | + * @param ActivationFunction $defaultActivationFunction |
|
147 | + */ |
|
145 | 148 | private function addNeuronLayers(array $layers, ?ActivationFunction $defaultActivationFunction = null): void |
146 | 149 | { |
147 | 150 | foreach ($layers as $layer) { |
@@ -59,7 +59,7 @@ |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
62 | - * @param object $point |
|
62 | + * @param Point $point |
|
63 | 63 | * @param mixed $data |
64 | 64 | */ |
65 | 65 | public function attach($point, $data = null): void |
@@ -29,7 +29,7 @@ |
||
29 | 29 | * |
30 | 30 | * @throws \Phpml\Exception\InvalidArgumentException |
31 | 31 | */ |
32 | - public function sqDistance(array $a, array $b): float |
|
32 | + public function sqDistance(array $a, array $b): float |
|
33 | 33 | { |
34 | 34 | return $this->distance($a, $b) ** 2; |
35 | 35 | } |