Passed
Pull Request — master (#168)
by Tomáš
04:09
created
src/Phpml/Clustering/KMeans/Cluster.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
     }
129 129
 
130 130
     /**
131
-     * @return mixed
131
+     * @return integer
132 132
      */
133 133
     public function count()
134 134
     {
Please login to merge, or discard this patch.
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/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.
src/Phpml/NeuralNetwork/Network/MultilayerPerceptron.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -132,6 +132,9 @@
 block discarded – undo
132 132
         $this->addLayer(new Layer($nodes, Input::class));
133 133
     }
134 134
 
135
+    /**
136
+     * @param ActivationFunction $activationFunction
137
+     */
135 138
     private function addNeuronLayers(array $layers, ?ActivationFunction $activationFunction = null): void
136 139
     {
137 140
         foreach ($layers as $neurons) {
Please login to merge, or discard this patch.