Challenge: Solving Task Using AdaBoost ClassifierChallenge: Solving Task Using AdaBoost Classifier


The load_wine dataset is a classic example used for classification tasks. It consists of 178 samples, each representing a different wine cultivar. The dataset comprises 13 numerical attributes that describe various chemical characteristics of the wines, including features like alcohol content, malic acid concentration, and ash content. The target variable consists of three distinct classes representing the three different cultivars.

Your task is to use AdaBoost Classifier to solve the classification problem on the load_wine dataset:

  1. Split data into train and test sets.
  2. Use the AdaBoostClassifier() constructor to create the model with 50 base estimators.


    If we don't specify the base model of AdaBoostClassifer, the Decision Tree Classifier will be used by default.

Everything was clear?

Section 3. Chapter 2
toggle bottom row