Preprocessing steps

Every preprocessing step in Pipeline Studio: what it does, its parameters and when to use it.

Preprocessing steps prepare the columns before the model sees them. In Pipeline Studio, the Columns part is a table with one row per column. Press Choose... in a row to see the transformations that fit that column's type, grouped as Fill missing values, Turn categories into numbers, Scale numbers, Change the shape of the values, Extreme values, Dates, Text, Name and type and Remove column. Press a chip to change its settings. Steps that use several columns together are under Across several columns, with a Use button. Steps in order lists them all.

Steps run in order, from the first to the last. They are fitted on training rows only, and the same fitted steps are applied to every row the model scores later, including rows sent to a deployed endpoint. Select Check without running in Review & run to check the chain; a valid pipeline reports how many columns reach the models.

A step that needs an optional component the server does not have stays listed with a badge such as "Needs text extra" and cannot be added.

Structural

StepWhat it does
Drop columnsRemoves the selected columns.
Rename columnsRenames columns from an old name to a new name mapping.
Change data typeCasts columns to dtype: str, float, int, category or bool.

Drop identifiers (a unique value per row), constant columns and anything that would not exist at prediction time.

Imputation

Imputation fills missing values in numeric or categorical columns. The strategy is mean (the default), median, most_frequent or constant; with constant, set fill_value. Use the median for skewed numbers and most_frequent for categories. Create one step per strategy and choose different columns for each.

Scaling and transforms

StepWhat it doesTypical use
Standard ScalerZero mean, unit variance.Linear models, neural networks, K-Means.
Min-Max ScalerScales to the range 0 to 1.Algorithms that expect bounded inputs.
Robust ScalerUses the median and the interquartile range.Columns with outliers.
MaxAbs ScalerDivides by the maximum absolute value.Data with many zeros.
NormalizerScales each row to unit length.Row-wise similarity.
Quantile TransformerMaps values to a uniform distribution.Strongly non-normal columns.
Power TransformerMakes a column more bell-shaped. method: yeo-johnson (default, accepts negatives) or box-cox (strictly positive values only).Skewed columns.
Log TransformApplies log(1 + x); needs values above -1.Long right tails such as prices.

Tree-based algorithms (decision trees, forests, boosting) are insensitive to scaling. Distance-based and gradient-based algorithms are not.

Encoding

Encoding turns categories into numbers.

StepWhat it doesWhen to use it
One-Hot EncodingOne 0/1 column per category. Unseen categories become all zeros.Few categories (about 10 or fewer).
Ordinal EncodingInteger codes in the order categories are first seen. Unseen categories get -1.Tree-based models, or truly ordered categories.
Label EncodingSame behavior as Ordinal Encoding, under its more familiar name.As above.
Frequency EncodingReplaces each category by its share of training rows.Many categories.
Target EncodingReplaces each category by a smoothed mean of the target. smoothing (default 10) pulls rare categories toward the overall mean.Many categories, supervised tasks.
Binary EncodingInteger code written in binary bits, so far fewer columns than one-hot.Many categories with columns to spare.

Target encoding and leakage

Target Encoding uses the target to build features. mlflow fits it on training rows only, but a high smoothing value is safer for rare categories, and it is not available for time series.

Outliers

StepWhat it does
WinsorizationClips values below the lower quantile and above the upper quantile. limits (default 0.05, range 0 to 0.5) is the share cut at each end.
Outlier TreatmentClips values outside the 1.5 × IQR fence. The only method is clip.

These steps clip values; they never delete rows. For tasks that support it, row removal is a separate engine option and is not part of the step catalog.

Date and time

StepWhat it does
Date ExtractionCreates columns from a datetime column. parts: year, month, day, dayofweek (the defaults), hour and quarter.
Cyclical VariablesEncodes a periodic integer (month, hour) as a sine and cosine pair. period is the cycle length: 12 for month, 24 for hour, 7 for day of week.

Use cyclical encoding so that December and January are neighbors.

Text

StepWhat it does
TF-IDFWeighted word counts. max_features (default 200).
Bag of WordsRaw word counts. max_features (default 200).
SVD text features (LSA)Compresses TF-IDF into dense columns. n_components (default 50). Captures word co-occurrence, not meaning.
Sentence embeddingsSemantic vectors from a pretrained model that runs on CPU. Parameters: model_name, revision, batch_size (default 32) and normalize (default on). Needs the optional text component on the server.

Text steps are not available for time series.

Dimensionality and feature selection

StepWhat it does
PCAProjects numeric columns onto n_components principal components (default 2). Original columns are replaced.
Low-Variance RemovalDrops numeric columns whose variance is at or below threshold (default 0).
Correlation RemovalDrops one column of each pair whose absolute correlation exceeds threshold (default 0.95).
Feature SelectionKeeps features whose importance, measured by an Extra Trees model, is above the median.

Recommendations

The Recommendations panel proposes steps from rules applied to the dataset profile. No model is trained and nothing is sent to an AI provider. The rules are:

  • constant columns and ID-like columns: drop them;
  • numeric columns with missing values: median imputation; categorical ones: most-frequent imputation;
  • categorical columns with 10 or fewer categories: one-hot encoding; with more than 20: frequency encoding;
  • numeric columns where more than 5 percent of rows are outliers: robust scaler; approximately normal columns: standard scaler;
  • pairs with absolute correlation above 0.95: correlation removal;
  • 100 or more columns: PCA.

Each recommendation shows its reasoning. Select Accept to add it, Edit columns to change its columns, or Dismiss to hide it. The separate Pipeline assistant can suggest a full pipeline using your workspace's AI provider.

Time series rules

A forecasting pipeline has two kinds of columns, and a step may touch only one kind.

  • Target series: only Standard Scaler, Min-Max Scaler, Robust Scaler, MaxAbs Scaler, Power Transformer and Log Transform. They are undone on the forecasts.
  • Other columns (exogenous inputs): any step except Target Encoding, Feature Selection and the text steps, which need the target as a label or produce text features. Normalizer and Quantile Transformer work on exogenous columns only.

A step cannot mix the target with other columns, and no step may use the date column.

Next steps

Learn the theory

Lessons on learning.mlflow.es that explain the ideas behind this page.

Updated 2026-11-22