Predict Functions in R

Live Online Training : Data Science with R

- Explain Advanced Algorithms in Simple English
- Live Projects
- Case Studies
- Job Placement Assistance
- Get 10% off till Oct 26, 2017
- Batch starts from October 28, 2017

The following is a list of predict functions of predictive modeling techniques in R.

Support Vector Machine [library(e1071)]
svm.pred = predict(svm.mod, val, probability = TRUE)
Random Forest [library(randomForest)] / CART [library(rpart)]
rf.pred = predict(rf.mod,val, type="prob")

Logistic Regression [library(car)]
log.pred = predict(log.mod,val, type="response")
Conditional Inference Tree / Forest [library(party)]
ct.pred = predict(ct.mod,val)
Gradient Boosting Tree [library(gbm)]
gbm.pred = predict(gbm.mod, type = "response", n.trees)
In Caret Package, there is only one predict function i.e.  predict(log.mod,val, type="prob")

R Tutorials : 75 Free R Tutorials

About Author:

Deepanshu founded ListenData with a simple objective - Make analytics easy to understand and follow. He has close to 7 years of experience in data science and predictive modeling. During his tenure, he has worked with global clients in various domains like retail and commercial banking, Telecom, HR and Automotive.


While I love having friends who agree, I only learn from those who don't.

Let's Get Connected: Email | LinkedIn

Get Free Email Updates :
*Please confirm your email address by clicking on the link sent to your Email*

Related Posts:

0 Response to "Predict Functions in R"

Post a Comment

Next → ← Prev