Question: Exercise 1 3 - 9 Algo ( Using R ) The answers to this problem are based on R version 3 . 5 . 3
Exercise Algo Using R
The answers to this problem are based on version To replicate the results with newer versions of execute the following
line of code at the beginning of the session or your code: suppressWarningsRNGversion
For R partition data sets into training and validation. Use the statement set.seed to specify the random seed of for both
data partitioning and crossvalidation. If the predictor variable values are in the character format, then treat the predictor variable as a
categorical variable. Otherwise, treat the predictor variable as a numerical variable.
The accompanying data file contains five predictor variables to and one binary target variable y Follow the instructions below
to create classification trees using the Exercise Data worksheet.
a Use the rpart function to build a default classification tree. How many leaf nodes are in the default classification tree? What are the
predictor variable and split value for the first split of the default classification tree root node
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
