| 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) |
||
| 39 | |||
| 40 | public function fit(array $samples): void |
||
| 52 | |||
| 53 | public function transform(array &$samples): void |
||
| 59 | } |
||
| 60 |