A workflow uses a feature transformation step that takes raw categorical strings and outputs encoded numeric vectors. What approach best avoids training/serving skew in encoding?

Answer

Save the fitted preprocessing artifacts (e.g., encoders) and reuse the same artifacts for inference

Explanation

Using the same fitted preprocessing artifacts for both training and inference ensures consistent mapping from categories to numeric values. Re-fitting or encoding only on inference inputs can introduce skew and unexpected behavior.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list