Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
51 | public function predict(array $samples) |
||
52 | { |
||
53 | if (!is_array($samples[0])) { |
||
54 | $predicted = $this->predictSample($samples); |
||
55 | } else { |
||
56 | $predicted = []; |
||
57 | foreach ($samples as $index => $sample) { |
||
58 | $predicted[$index] = $this->predictSample($sample); |
||
59 | } |
||
60 | } |
||
61 | |||
62 | return $predicted; |
||
63 | } |
||
64 | |||
106 |