Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here


caret (Classification And Regression Training) R package that contains misc functions for training and plotting classification and regression models

Subscribe to updates I use caret

Statistics on caret

Number of watchers on Github 794
Number of open issues 85
Average time to close an issue 18 days
Main language R
Average time to merge a PR 6 days
Open pull requests 26+
Closed pull requests 26+
Last commit over 1 year ago
Repo Created over 5 years ago
Repo Last Updated over 1 year ago
Size 325 MB
Homepage http://topepo.git...
Organization / Authortopepo
Latest Release6.0-78
Page Updated
Do you use caret? Leave a review!
View open issues (85)
View caret activity
View TODOs for caret (22)
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating caret for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Build Status Coverage Status CRAN_Status_Badge Downloads

Classification and Regression Training

Miscellaneous functions for training and plotting classification and regression models. Detailed documentation is at

Install the current release from CRAN:


Install the development version from GitHub:

caret open issues Ask a question     (View All Issues)
  • almost 3 years Error in train function of caret "Error in `[.data.frame`(data, , all.vars(Terms), drop = FALSE) : undefined columns selected"
  • almost 3 years Wrong reference in
  • almost 3 years Feature request: resamples-type function for predictions on test set
  • almost 3 years xgboost class probabilities inaccurate if `objective = "binary:logitraw"`
  • about 3 years Breaking Backward Compatibility
  • about 3 years xgbtree for poisson regression with offset
  • about 3 years Gini and logLoss Goodness of Fit function
  • about 3 years [New Model]: kernDeepStackNet: Kernel Deep Stacking Networks
  • about 3 years [New Model]: monmlp: Monotone Multi-Layer Perceptron Neural Network
  • about 3 years Ability to send additional data to trainControl's summaryFunction
  • about 3 years Sparse Matrix in caret
  • about 3 years feature request: fast frugal trees
  • about 3 years createFolds is very slow when y is a character with many values
  • about 3 years Feature proposal - multiple input mulitple output
  • about 3 years Feature Request - Label K-fold cross validation
  • about 3 years Feature suggestion - LIME
  • about 3 years scaling preds to original outcome distribution when down/upsampling
  • over 3 years parallelizing preprocess
  • over 3 years Feature Request: place ... in evalSummaryFunction() for train()
  • over 3 years Feature request: rBayesian
  • over 3 years Feature proposal: time partition for time series classification/regression
  • over 3 years Change default arguments of ROC computation (pROC) in the RFE process (caret)
  • over 3 years Y-aware PCA for preprocessing
  • over 3 years [New Model]: kinn (an Implementation of 'kinn' Algorithm, a Graph Based Regression Model)
  • over 3 years [New Model]: fuzzyforest
  • over 3 years Add warning with OOB and custom summary metric
  • over 3 years preProcess zv and nzv for factors
  • over 3 years LLVM static code analysis shows ten bugs
  • over 3 years look into deep learning package
  • over 3 years write makefile for html builds
caret open pull requests (View All Pulls)
  • added an issue template
  • Fix minor typo
  • Restrict generation of confusion matrix for resamples when number of classes is large
  • Confusion matrix normalization
  • Variable importance with predictor shuffling
  • Tuning grid fix
  • predict.train documentation fix for type="prob"
  • Added forceRefit option in update.train - Fixes #445
  • Add tuning params to rlm model: intercept, psi
  • Update lm.R
  • replaced pROC metrics and optimized sections of code
  • Add RWeka Tuning Parameters
  • Add Patient Rule Induction Method
  • doRedis: could not find outcome_conversion function
  • Fix undefined cross-reference
  • Fix `tuneGrid` problems with method = 'none'
  • Optimize createTimeSlices and add tests
  • converting binary:logitraw to prob closes #511
  • Code
  • Switch to non-formula interface in ranger
  • Fixing error message
  • Adding MAE as a standard output for regression tasks
  • Fixed xgbDART bug
  • Added feature to show training progress
  • Fixed typo
  • Typo in 04-Basic.Rmd
caret questions on Stackoverflow (View All Questions)
  • How to call GetGUIThreadInfo() method of WinApi Using JNI to get caret position in Window
  • Change visual studio caret color
  • Visual Studio adds caret to command line when run without debugging
  • Error in train function of caret package (R language) - Invalid argument type: 'sim' & 'obs' have to be of class: c('integer', 'numeric', 'ts', 'zoo')
  • How can I use caret to train models and give the classification metrics over a validation set?
  • Multiclass classification with R and caret: How do I know which strategy the classifier uses?
  • There are no fitted values for the final model when using train from CARET
  • R rfe feature selection caret
  • Why caret preProcess impute method scales data automatically
  • Java | Pass caret through regex
  • caret train not outputting progress
  • How can I use line-height without affecting caret height?
  • Eclipse text editor get caret position
  • Placing the caret (cursor) in a specific position in a contenteditable field — problems during click
  • Caret location/position Inside any Application
  • Error with predict on svmRadial from caret in R
  • How to solve toolbar back caret not showing
  • Solved) How to know current position of caret in TextBox(TextBlock) to select a certain word programmatically
  • NetBeans 7 - How to remove Marked Occurrences when caret is moved away from variable?
  • Set caret position in javafx.scene.control.TextArea and javafx.scene.control.TextField
  • Insert override generated code at caret position?
  • set caret position to contenteditable div
  • Error when I try to predict class probabilities in R - caret
  • Split string into 2 parts with caret
  • What is the difference between pipe (|) and caret (^) selectors?
  • caret - random-forests not working: "Something is wrong; all the Accuracy metric values are missing:"
  • Why is this regex allowing a caret?
  • Switching between Android Navigation Drawer image and Up caret when using fragments
  • What's the deal with "Trials" in C5.0 ruleModels when trained with caret?
  • how to hide the insert caret in a JTextField?
caret list of languages used
Other projects in R