Question: Build a Random forest classifier for the dataset provided in the link below. Random forest uses two parameters: the tree-depth for each decision tree and
Build a Random forest classifier for the dataset provided in the link below.
Random forest uses two parameters: the tree-depth for each decision tree and the number of trees. Use the following values for the tree-depth: 300,500,600. Use the following values for the number of trees: 200,500,700. Choose the best values of tree-depth and number of trees using 10-fold cross-validation, based on model F1-score.
Link for dataset : http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones
Use python library for implementation and please put comments for my understanding.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
