Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by www.codementor.io #
 
PREVIOUS NEXT
Tagged: #sklearn #pipeline #interactions #python
ADD COMMENT
Topic
Name
5+4 =