easy5 pts · first answer countsml-pipelinesscikit-learntraining-serving-skew
Bundling preprocessing with the model
Why save a scikit-learn Pipeline instead of just the fitted classifier?
pipe = Pipeline([
("scale", StandardScaler()),
("clf", LogisticRegression()),
])
pipe.fit(X_train, y_train)
joblib.dump(pipe, "model.joblib")Discussion 0
Join free to post in the discussion.
Related questions
- What training-serving skew isMLOps Engineer
- Why pipelines are DAGsMLOps Engineer
- What a Kubeflow component isMLOps Engineer
- MLflow logging callsMLOps Engineer
- What mlflow.autolog() doesMLOps Engineer
- What a .dvc file holdsMLOps Engineer
- Training broke after a fresh installMLOps Engineer
- Feast basic objectsMLOps Engineer