Icon

07 Random Forest

Exercise for training a Random Forest model.

Build a Random Forest (Regression) model on a training set. Apply it to a test set, and evaluate the model's performance with numeric scoring metrics.


Exercise: Random Forest (Regression)Build a Random Forest model to predict the price of a room.1.1) Execute the workflow below. It reads and preprocesses the Airbnb data.1.2) Partition the data into a training set (70%) and a test set (30%). Applyrandom sampling.1.3) Train a Random Forest (Regression) model to predict the price column1.4) Apply the model to the test set1.5) Evaluate the model's performance with the Numeric Scorer node1.6) How much in average does the prediction deviate from the actual roomprice per night? How much in percentage terms? Read AB_NYC_2019datapredict pricetop: training set (70%)bottom: test set (30%)R^2 and errormetrics InteractiveData Cleaning CSV Reader Replace 0 price byneighborhood average Random Forest Learner(Regression) Random Forest Predictor(Regression) Partitioning Numeric Scorer Exercise: Random Forest (Regression)Build a Random Forest model to predict the price of a room.1.1) Execute the workflow below. It reads and preprocesses the Airbnb data.1.2) Partition the data into a training set (70%) and a test set (30%). Applyrandom sampling.1.3) Train a Random Forest (Regression) model to predict the price column1.4) Apply the model to the test set1.5) Evaluate the model's performance with the Numeric Scorer node1.6) How much in average does the prediction deviate from the actual roomprice per night? How much in percentage terms? Read AB_NYC_2019datapredict pricetop: training set (70%)bottom: test set (30%)R^2 and errormetricsInteractiveData Cleaning CSV Reader Replace 0 price byneighborhood average Random Forest Learner(Regression) Random Forest Predictor(Regression) Partitioning Numeric Scorer

Nodes

Extensions

Links