from sklearn.ensemble import RandomForestClassifier
clf_RForest = RandomForestClassifier(max_depth=2, random_state=0)
clf_RForest.fit(features_train, labels_train)
pred = clf_RForest.predict(features_test)
from sklearn.metrics import accuracy_score
acc_RForest = accuracy_score(pred, labels_test)
print 'RForest accuracy is: ', acc_RForest
>>>>>>>>>>
RForest accuracy is: 0.92