October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps to find highly correlated attributes:
> new_train = trainset[,! names(churnTrain) %in% c("churn", "international_plan", "voice_mail_plan")]
>cor_mat = cor(new_train)
> highlyCorrelated = findCorrelation(cor_mat, cutoff=0.75)
> names(new_train)[highlyCorrelated]
Output
[1] "total_intl_minutes" "total_day_charge" "total_eve_minutes" "total_night_minutes"
Read now
Unlock full access