added MultClassPipe2 that has one hot encoder step to the pipeline

This commit is contained in:
Tanushree Tunstall 2022-03-07 17:36:48 +00:00
parent f5dcf29e25
commit 564e72fc2d
4 changed files with 51 additions and 17 deletions

View file

@ -351,6 +351,7 @@ pred
# make a pipeline
# PCA(Dimension reduction to two) -> Scaling the data -> DecisionTreeClassification
#https://www.geeksforgeeks.org/pipelines-python-and-scikit-learn/
pipe1 = Pipeline([('pca', PCA(n_components = 2))
, ('std', StandardScaler())
, ('decision_tree', DecisionTreeClassifier())]