php-ml/src/Phpml/SupportVectorMachine/Kernel.php

29 lines
393 B
PHP
Raw Normal View History

2016-05-05 21:29:11 +00:00
<?php
2016-11-20 21:53:17 +00:00
declare(strict_types=1);
2016-05-05 21:29:11 +00:00
namespace Phpml\SupportVectorMachine;
abstract class Kernel
{
/**
* u'*v.
*/
public const LINEAR = 0;
2016-05-05 21:29:11 +00:00
/**
* (gamma*u'*v + coef0)^degree.
*/
public const POLYNOMIAL = 1;
2016-05-05 21:29:11 +00:00
/**
* exp(-gamma*|u-v|^2).
*/
public const RBF = 2;
2016-05-05 21:29:11 +00:00
/**
* tanh(gamma*u'*v + coef0).
*/
public const SIGMOID = 3;
2016-05-05 21:29:11 +00:00
}