Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
2 / 2 |
| SVR | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
| __construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| <?php | |
| declare (strict_types = 1); | |
| namespace Phpml\Regression; | |
| use Phpml\SupportVectorMachine\Kernel; | |
| use Phpml\SupportVectorMachine\SupportVectorMachine; | |
| use Phpml\SupportVectorMachine\Type; | |
| class SVR extends SupportVectorMachine implements Regression | |
| { | |
| /** | |
| * @param int $kernel | |
| * @param int $degree | |
| * @param float $epsilon | |
| * @param float $cost | |
| * @param float|null $gamma | |
| * @param float $coef0 | |
| * @param float $tolerance | |
| * @param int $cacheSize | |
| * @param bool $shrinking | |
| */ | |
| public function __construct( | |
| int $kernel = Kernel::RBF, int $degree = 3, float $epsilon = 0.1, float $cost = 1.0, | |
| float $gamma = null, float $coef0 = 0.0, float $tolerance = 0.001, | |
| int $cacheSize = 100, bool $shrinking = true | |
| ) { | |
| parent::__construct(Type::EPSILON_SVR, $kernel, $cost, 0.5, $degree, $gamma, $coef0, $epsilon, $tolerance, $cacheSize, $shrinking, false); | |
| } | |
| } |