Test Failed
Pull Request — master (#150)
by Tomáš
02:19
created
src/Phpml/Clustering/KMeans/Space.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@
 block discarded – undo
16 16
      */
17 17
     protected $dimension;
18 18
 
19
+    /**
20
+     * @param integer $dimension
21
+     */
19 22
     public function __construct($dimension)
20 23
     {
21 24
         if ($dimension < 1) {
Please login to merge, or discard this patch.
src/Phpml/NeuralNetwork/Node/Neuron.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@
 block discarded – undo
25 25
      */
26 26
     protected $output;
27 27
 
28
+    /**
29
+     * @param ActivationFunction $activationFunction
30
+     */
28 31
     public function __construct(?ActivationFunction $activationFunction = null)
29 32
     {
30 33
         $this->activationFunction = $activationFunction ?: new ActivationFunction\Sigmoid();
Please login to merge, or discard this patch.
src/Phpml/NeuralNetwork/Training/Backpropagation.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     }
31 31
 
32 32
     /**
33
-     * @param mixed $targetClass
33
+     * @param integer $targetClass
34 34
      */
35 35
     public function backpropagate(array $layers, $targetClass): void
36 36
     {
Please login to merge, or discard this patch.