Skip to content

Instantly share code, notes, and snippets.

@vanbrands
Last active July 30, 2020 02:57
Show Gist options
  • Save vanbrands/eb360e7dff3a7d3f1395e69460b60481 to your computer and use it in GitHub Desktop.
Save vanbrands/eb360e7dff3a7d3f1395e69460b60481 to your computer and use it in GitHub Desktop.
# Persist pipeline to disk
pipeline.fit(x_train, y_train)
joblib.dump(pipeline, 'model.joblib')
# Load pipeline and make prediction
pipeline = joblib.load('model.joblib')
y_hat = pipeline.predict(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment