October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps to perform feature selection on a churn dataset:
> install.packages("FSelector")
> library(FSelector)
> weights = random.forest.importance(churn~., trainset, importance.type = 1) > print(weights) Output attr_importance international_plan 96.3255882 voice_mail_plan 24.8921239 number_vmail_messages 31.5420332 total_day_minutes 51.9365357 total_day_calls -0.1766420 total_day_charge 53.7930096 total_eve_minutes 33.2006078 total_eve_calls -2.2270323 total_eve_charge 32.4317375 total_night_minutes 22.0888120 total_night_calls ...
Read now
Unlock full access