calculate accuracy of random forest code example
Example 1: how to improve accuracy of random forest classifier
from sklearn.model_selection import GridSearchCV
cv = GridSearchCV(rfc,parameters,cv=5)
cv.fit(train_features,train_label.values.ravel())
Example 2: how to improve accuracy of random forest classifier
display(cv)