Python Random Forest classifier example
Uses sklearn.ensemble library
import RandomForestClassifier class
Note: Do not use more decision trees like 500 as it may cause overfitting. In this example 180 decision trees are used for a good prediction. 20 or 30 decision trees gave incorrect predictions.