Icon

03_​Random_​Forest

Random Forest - exercise
Exercise: Random Forest1) Train a Random Forest model to predict the overall condition of a house (high/low) (Random Forest Learner node)- Select the "rank" column as the target column- Leave other settings to their defaults2) Use the trained model to predict the rank of the houses in the test set (Random Forest Predictor node)3) Evaluate the accuracy of the random forest model (Scorer node)- Select "rank" as the actual column and "Prediction (rank)" as the predicted column- What is the accuracy of the model?Optional: Build a parameter optimization loop to find the best settings for parameters tree depth and number of models.1) Use the Parameter Optimization Loop Start node to define the possible values for the tree depth and the number ofmodels- Connect the variable port to the Random Forest Learner node- Use the created flow variables to overwrite the according setting option in the Random Forest Learner node. 2) Use the Parameter Optimization Loop End node to define the accuracy as the objective function- Which settings lead to the model with highest accuracy? Classification: Random Forest Optional: Parameter Optimization Loop Read AmesHousing.csv CSV Reader Preprocessing Exercise: Random Forest1) Train a Random Forest model to predict the overall condition of a house (high/low) (Random Forest Learner node)- Select the "rank" column as the target column- Leave other settings to their defaults2) Use the trained model to predict the rank of the houses in the test set (Random Forest Predictor node)3) Evaluate the accuracy of the random forest model (Scorer node)- Select "rank" as the actual column and "Prediction (rank)" as the predicted column- What is the accuracy of the model?Optional: Build a parameter optimization loop to find the best settings for parameters tree depth and number of models.1) Use the Parameter Optimization Loop Start node to define the possible values for the tree depth and the number ofmodels- Connect the variable port to the Random Forest Learner node- Use the created flow variables to overwrite the according setting option in the Random Forest Learner node. 2) Use the Parameter Optimization Loop End node to define the accuracy as the objective function- Which settings lead to the model with highest accuracy? Classification: Random Forest Optional: Parameter Optimization Loop Read AmesHousing.csv CSV Reader Preprocessing

Nodes

Extensions

Links