| Total Complexity | 7 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class VarianceThreshold implements Transformer |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var float |
||
| 16 | */ |
||
| 17 | private $threshold; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | private $variances = []; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | private $keepColumns = []; |
||
| 28 | |||
| 29 | public function __construct(float $threshold = 0.0) |
||
| 36 | } |
||
| 37 | |||
| 38 | public function fit(array $samples, ?array $targets = null): void |
||
| 47 | } |
||
| 48 | } |
||
| 49 | } |
||
| 50 | |||
| 51 | public function transform(array &$samples, ?array &$targets = null): void |
||
| 58 |