Skip to content
C

Problem 2: Train an AdaBoost Classifier

Easypython

Problem Description

Write a Python program that trains an AdaBoostClassifier on the same dataset, and compares its prediction to the Bagging model from Problem 1.

Input

The same labeled dataset and new data point.

Output

The predicted class from AdaBoost.

Constraints

  • Use the same dataset as Problem 1.

Example Input

text
(Same as Problem 1)

Example Output

text
AdaBoost prediction: [1]

Concepts Covered

AdaBoostClassifier, model comparison.

Input (stdin)

Output

Run your code to see output here...