I want to optimize a Random Forest classifier. So, I plotted an OOB error(the code is available in scikit). From this plot, I want to pick the 2 variables (n_estimators and max_features) that give the lowest OOB error. And then use those them to optimize the classifier (a clf.fit).
From the curve it can be seen that with 170 n_estimators and 5 max_features, I get the lowest OOB. But how can I send these 2 values as a clf.fit to the RandomForest? I want to use this technique instead of RandomSearch or GridSearch.
Any idea on where to start?