sklearn pipeline with interactions python

Solutions on MaxInterview for sklearn pipeline with interactions python by the best coders in the world

showing results for - "sklearn pipeline with interactions python"
Juan Pablo
29 Jul 2019
1model_pipeline = Pipeline(steps=[
2  ("dimension_reduction", PCA(n_components=10)),
3  ("classifiers", RandomForestClassifier())
4])
5
6model_pipeline.fit(train_data.values, train_labels.values)
7predictions = model_pipeline.predict(predict_data.values)
8
similar questions
queries leading to this page
sklearn pipeline with interactions python