There's more...

In this recipe, we showed how to use advanced classifiers to achieve better results. To make things even more interesting, these models have multiple hyperparameters to tune, which can significantly increase/decrease their performance.

For brevity, we do not discuss hyperparameter tuning of these models here. We refer to the Notebook in the GitHub repository for a short introduction to tuning these models using randomized grid search. Here, we only present the results, comparing the performance of the models with default settings versus their tuned counterparts.

Before describing the results, we briefly go over the details of the considered classifiers:

Random Forest: Random Forest is the first of the models we consider in ...

Get Python for Finance Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.