Skip to main content

Step.minimize()

Return a copy of this step with fit-only artifacts stripped.

Usage

Source

Step.minimize()

The default is a no-op: it returns self unchanged. Steps that retain training artifacts only needed at fit time (e.g. a future KNN imputer’s neighbor matrix) override this to return a lighter copy that still transforms identically. See minimize.