April 2016
Beginner to intermediate
384 pages
8h 36m
English
Random Forest, similar to decision trees, can also be applied to solving regression problems. We used them previously to classify calls (refer to the Predicting subscribers with random tree forests recipe in Chapter 3, Classification Techniques). Here, we will use Random Forest to predict the output of a power plant.
To execute this, you will need pandas, NumPy, and Scikit. No other prerequisites are required.
The Random Forests are part of the ensemble types of models. This example borrows the code-shell that we presented in Chapter 3, Classification Techniques (the regression_randomForest.py file):
import sys sys.path.append('..') # the rest of the imports import ...