Answers for "sklearn pipeline with interactions python"

0

sklearn pipeline with interactions python

model_pipeline = Pipeline(steps=[
  ("dimension_reduction", PCA(n_components=10)),
  ("classifiers", RandomForestClassifier())
])

model_pipeline.fit(train_data.values, train_labels.values)
predictions = model_pipeline.predict(predict_data.values)
Posted by: Guest on October-29-2020

Code answers related to "sklearn pipeline with interactions python"

Python Answers by Framework

Browse Popular Code Answers by Language