I have been attempting to follow this tutorial:
http://edureka.co/blog/data-science-projects
I have reached the following line, but it fails with an error:
confusionMatrix (TrainSet$incomelevel, predict (boostFit, TrainSet))
Error in predict(boostFit, TrainSet) : object 'boostFit' not found
What is the package that should be used in order to use the function "boost Fit"??
I thought I had created it with a previous line in the code:
boostFit = train(incomelevel ~ age + workclass + education + educationnum +
maritalstatus + occupation + relationship + race + capitalgain +
capitalloss + hoursperweek + nativecountry,
trControl = trCtrl, method = "gbm", data = TrainSet,
verbose = FALSE)
Does this mean I need to install a package for function boostFit
, and if yes then what is the package name??