Contents

ColumnSelector

An operation that applies an estimator to a selection of columns.

Declaration

struct ColumnSelector<Estimator, UnwrappedInput> where Estimator : Estimator, Estimator.Transformer.Input == UnwrappedInput?

Overview

This estimator applies a non-tabular estimator to a selection of columns. Here’s an example of normalizing numeric values within each column using a StandardScaler:

let numericalScaling = ColumnSelector(
    columns: ["volume", "price"],
    estimator: NumericImputer<Float>(.mean)
        .appending(StandardScaler<Float>())
)

In most cases, an inputer must handle missing values.

Topics

Creating the selection

Getting the properties

Encoding and decoding

Fitting a transformer

Default Implementations

See Also

Tabular components