Seeing the forest from the trees

Học có giám sát trong R: Phân loại

Brett Lantz

Instructor

Understanding random forests

Trees in a Forest

Học có giám sát trong R: Phân loại

Making decisions as an ensemble

Single Complex Tree vs. Three Simple Trees

Five Models Voting

Học có giám sát trong R: Phân loại

Random forests in R

# building a simple random forest
library(randomForest)
m <- randomForest(repaid ~ credit_score + request_amt, data = loans,
             ntree = 500,    # number of trees in the forest
             mtry = sqrt(p)) # number of predictors (p) per tree
# making predictions from a random forest
p <- predict(m, test_data)
Học có giám sát trong R: Phân loại

Let's practice!

Học có giám sát trong R: Phân loại

Preparing Video For Download...