Skip to content

Instantly share code, notes, and snippets.

@stichbury
Created April 26, 2021 10:32
Show Gist options
  • Save stichbury/f9f70057401f13dab10ff21e3cf0f1be to your computer and use it in GitHub Desktop.
Save stichbury/f9f70057401f13dab10ff21e3cf0f1be to your computer and use it in GitHub Desktop.
def create_pipeline(**kwargs):
return Pipeline(
[
node(
func=split_data,
inputs=["master_table", "parameters"],
outputs=["X_train", "X_test", "y_train", "y_test"],
name="split_data_node",
),
node(
func=train_model,
inputs=["X_train", "y_train"],
outputs="regressor",
name="train_model_node",
),
node(
func=evaluate_model,
inputs=["regressor", "X_test", "y_test"],
outputs=None,
name="evaluate_model_node",
),
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment