1 | <?php |
||
11 | class SVC implements Classifier |
||
12 | { |
||
13 | use Trainable, Predictable; |
||
14 | |||
15 | /** |
||
16 | * @var int |
||
17 | */ |
||
18 | private $kernel; |
||
19 | |||
20 | /** |
||
21 | * @var float |
||
22 | */ |
||
23 | private $cost; |
||
24 | |||
25 | /** |
||
26 | * @param int $kernel |
||
27 | * @param float $cost |
||
28 | */ |
||
29 | public function __construct(int $kernel, float $cost) |
||
34 | |||
35 | /** |
||
36 | * @param array $samples |
||
37 | * @param array $labels |
||
38 | */ |
||
39 | public function train(array $samples, array $labels) |
||
44 | |||
45 | /** |
||
46 | * @param array $sample |
||
47 | * |
||
48 | * @return mixed |
||
49 | */ |
||
50 | protected function predictSample(array $sample) |
||
53 | } |
||
54 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.