Fitting Regression Trees 2

Sign in to test your solution.
set.seed(1) train <- sample(1:nrow(Hitters), nrow(Hitters) / 2) tree.hitters <- tree(Salary ~ ., data = Hitters, subset = train) set.seed(1)
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.