[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 maxFeatures int The maximum number of features to select from the dataset.

Additional Methods#

Return the offsets of the columns that were selected during fitting:

public selected() : array

Return the variances of the selected feature columns:

public variances() : ?array

Example#

use Rubix\ML\Transformers\VarianceThresholdFilter;

$transformer = new VarianceThresholdFilter(50);