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.