-
-
Save tugloo1/136d52121755b9d7b6ca494ac4939b23 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
selk = SelectKBest(k=5) | |
dtc = DecisionTreeClassifier(max_depth=6, random_state=42, min_samples_split=3) | |
pipline_steps = [ | |
('best_feature', selk), | |
('decision_tree', dtc) | |
] | |
clf = Pipeline(pipline_steps) | |
dump_classifier_and_data(clf, my_dataset, features_list) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment