According to my understanding, RF selects features randomly and hence is hard to overfit. But, in sklearn Gradient boosting also offers the option of max_features which can help to prevent overfitting. So, why would anyone use Random forest? Can anyone explain when to use Gradient boosting vs Random forest based on the given data?
Any help is highly appreciated.