Scikit-learn Random Forest

Create Random Forest model for classification or regression task. Please check Advanced options to set hyper parameters values. After model creation model should be fitted on data.


Required packages

You need below packages to use the code generated by recipe. All packages are automatically installed in MLJAR Studio.


Interactive recipe

You can use below interactive recipe to generate code. This recipe is available in MLJAR Studio.

Python code

# Python code will be here

Code explanation

Create model for Random Forest algorithm with selected hyper parameters.

Please be aware that training time greatly depends on number of trees in the model and data size.

« Previous
Decision Tree