|
7 | 7 | use Rubix\ML\Estimator;
|
8 | 8 | use Rubix\ML\EstimatorType;
|
9 | 9 | use Rubix\ML\Datasets\Unlabeled;
|
10 |
| -use Rubix\ML\Kernels\SVM\Polynomial; |
| 10 | +use Rubix\ML\Kernels\SVM\RBF; |
11 | 11 | use Rubix\ML\Datasets\Generators\Blob;
|
12 | 12 | use Rubix\ML\Datasets\Generators\Circle;
|
13 | 13 | use Rubix\ML\AnomalyDetectors\OneClassSVM;
|
@@ -43,7 +43,7 @@ class OneClassSVMTest extends TestCase
|
43 | 43 | *
|
44 | 44 | * @var float
|
45 | 45 | */
|
46 |
| - protected const MIN_SCORE = 0.5; |
| 46 | + protected const MIN_SCORE = 0.7; |
47 | 47 |
|
48 | 48 | /**
|
49 | 49 | * Constant used to see the random number generator.
|
@@ -77,7 +77,7 @@ protected function setUp() : void
|
77 | 77 | 1 => new Circle(0.0, 0.0, 8.0, 1.0),
|
78 | 78 | ], [0.9, 0.1]);
|
79 | 79 |
|
80 |
| - $this->estimator = new OneClassSVM(0.01, new Polynomial(4, 1e-3), true, 1e-4); |
| 80 | + $this->estimator = new OneClassSVM(0.3, new RBF(), true, 1e-4); |
81 | 81 |
|
82 | 82 | $this->metric = new FBeta();
|
83 | 83 |
|
@@ -125,8 +125,8 @@ public function compatibility() : void
|
125 | 125 | public function params() : void
|
126 | 126 | {
|
127 | 127 | $expected = [
|
128 |
| - 'nu' => 0.01, |
129 |
| - 'kernel' => new Polynomial(4, 1e-3), |
| 128 | + 'nu' => 0.3, |
| 129 | + 'kernel' => new RBF(), |
130 | 130 | 'shrinking' => true,
|
131 | 131 | 'tolerance' => 0.0001,
|
132 | 132 | 'cache size' => 100.0,
|
|
0 commit comments