Adaboosting code using a basic perceptron for an AI class