[source]

Variance Threshold Filter#

A type of feature selector that selects the top k features with the greatest variance.

Interfaces: Transformer, Stateful

Data Type Compatibility: Continuous

Parameters#

# Param Default Type Description
1 minFeatures int The minimum number of features to select from the dataset.

Example#

use Rubix\ML\Transformers\VarianceThresholdFilter;

$transformer = new VarianceThresholdFilter(50);

Additional Methods#

Return the variances of the dropped feature columns:

public variances() : ?array