mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-15 17:57:11 +00:00
29 lines
393 B
PHP
29 lines
393 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Phpml\SupportVectorMachine;
|
|
|
|
abstract class Kernel
|
|
{
|
|
/**
|
|
* u'*v.
|
|
*/
|
|
public const LINEAR = 0;
|
|
|
|
/**
|
|
* (gamma*u'*v + coef0)^degree.
|
|
*/
|
|
public const POLYNOMIAL = 1;
|
|
|
|
/**
|
|
* exp(-gamma*|u-v|^2).
|
|
*/
|
|
public const RBF = 2;
|
|
|
|
/**
|
|
* tanh(gamma*u'*v + coef0).
|
|
*/
|
|
public const SIGMOID = 3;
|
|
}
|