“…To tune hyperparameters, we performed a 10-fold cross validation using grid search (GridSearchCV function). Three hyperparameters were optimized: the number of trees (n_estimator, searched in [10,100,500]), the maximum depth of a single tree, (max_depth, searched in [None, 2,8,10,12]), and the maximum features of a single tree (max_features, set to either None or to the square root of the total number of features). The resulting optimal hyperparameter values were n_estimator: 500, max_depth: 12, max_features: None.…”