Created
April 26, 2021 10:32
-
-
Save stichbury/f9f70057401f13dab10ff21e3cf0f1be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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