Build a random forest classifier and evaluate predictions on a toy sample.
from sklearn.ensemble import RandomForestClassifier
X = [[0,0],[1,1],[2,2],[3,3]]
y = [0,1,1,0]
clf = RandomForestClassifier(n_estimators=50, random_state=0).fit(X, y)
print("Prediction for [1,2]:", clf.predict([[1,2]])[0])
Prediction for [1,2]: 1