Random Forest model
Code copied from Jean-Francois Rajotte, and slightly modified
to adapt to my framework.