added MultClassPipe2 that has one hot encoder step to the pipeline
This commit is contained in:
parent
f5dcf29e25
commit
564e72fc2d
4 changed files with 51 additions and 17 deletions
|
@ -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())]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue