Created
August 26, 2022 19:31
-
-
Save JarrydWannenburg/a1e7484ab0109f23a7f0ffb05732637e to your computer and use it in GitHub Desktop.
Scalable_Pipeline_Article
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
# Using ColumnTransformer and Selector to choose which columns to use | |
preprocessor = ColumnTransformer([ | |
('cat', cat_pipe, Selector(dtype_exclude=np.number)), | |
('num', num_pipe, Selector(dtype_include=np.number)) | |
]) | |
# Combining the processor with a model for a happy ending :) | |
full_pipe = Pipeline(steps=[ | |
('features', preprocessor), | |
('model', SVC()) | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment