Kernel
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 5
dl 0
loc 21
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Phpml\SupportVectorMachine;
6
7
abstract class Kernel
8
{
9
    /**
10
     * u'*v.
11
     */
12
    public const LINEAR = 0;
13
14
    /**
15
     * (gamma*u'*v + coef0)^degree.
16
     */
17
    public const POLYNOMIAL = 1;
18
19
    /**
20
     * exp(-gamma*|u-v|^2).
21
     */
22
    public const RBF = 2;
23
24
    /**
25
     * tanh(gamma*u'*v + coef0).
26
     */
27
    public const SIGMOID = 3;
28
}
29