Now it's time to create an AdaBoost classifier to build our concepts more strongly on the algorithm. Do you remember the box problem we had seen in the second example of the AdaBoost explanation? Well, we will solve the same problem and create an AdaBoost classifier to classify the instances into respected classes.
Let's look at the problem once again.
You can see the box with some blue + and red - signs; let's assume the + sign instances are positive instances with class label +1 and red ones are negative instances with class label -1:
First, we need to create these instances using ...