Classification and Regression Training

Misc functions for training and plotting classification and regression models.


R-CMD-check Codecov test coverage CRAN_Status_Badge Downloads

Classification and Regression Training

Miscellaneous functions for training and plotting classification and regression models. Detailed documentation is at http://topepo.github.io/caret/index.html

Install the current release from CRAN:

install.packages('caret')

Install the development version from GitHub:

pak::pak('topepo/caret')

Status

caret will be 20 years old in March of 2026. The package is currently in maintenance mode; the author will fix bugs and make CRAN releases as needed, but there will not be any major features in the package. It will stay on CRAN long-term; it's not going away.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("caret")

7.1-0 by Max Kuhn, 17 days ago


https://github.com/topepo/caret


Report a bug at https://github.com/topepo/caret/issues


Browse source code at https://github.com/cran/caret


Authors: Max Kuhn [aut, cre] , Jed Wing [ctb] , Steve Weston [ctb] , Andre Williams [ctb] , Chris Keefer [ctb] , Allan Engelhardt [ctb] , Tony Cooper [ctb] , Zachary Mayer [ctb] , Brenton Kenkel [ctb] , R Core Team [ctb] , Michael Benesty [ctb] , Reynald Lescarbeau [ctb] , Andrew Ziem [ctb] , Luca Scrucca [ctb] , Yuan Tang [ctb] , Can Candan [ctb] , Tyler Hunt [ctb]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports cli, e1071, foreach, grDevices, methods, nlme, plyr, recipes, reshape2, stats, stats4, utils, vctrs, withr, yardstick

Depends on ggplot2, lattice

Suggests BiocManager, BradleyTerry2, C50, covr, Cubist, dplyr, earth, ellipse, fastICA, gam, gbm, ipred, kernlab, klaR, knitr, MASS, Matrix, mda, mgcv, mlbench, nnet, pamr, party, pls, proxy, randomForest, RANN, rmarkdown, rpart, RRF, spls, superpc, testthat, themis, xgboost


Imported by ASML, AdaSampling, BFM, BLRShiny, BLRShiny2, BioM2, BioMoR, CAST, CCI, CEEMDANML, CLIQUE, CLRtools, CSCNet, CTShiny, CTShiny2, CimpleG, ClinicalUtilityRecal, CondiS, ConfusionTableR, ContaminatedMixt, CopulaCenR, Coxmos, CytoProfile, DSAM, DamiaNN, DebiasInfer, DeepLearningCausal, DeltaTools, E2E, ECTSVR, EMgaussian, Ecume, EpiSemble, EpidigiR, FAST.R, FFTrees, FLORAL, FSinR, FastJM, FeatureTerminatoR, FunctanSNP, GB5mcPred, GINAX, GPCMlasso, GeoVersa, HTRX, HaploCatcher, ImFoR, ImML, ImVol, JMH, KCSKNNShiny, KCSNBShiny, KMEANS.KNN, KNNShiny, LCCkNN, LLMing, LncFinder, MBMethPred, MLDataR, MLmorph, MNLR, MRFcov, MUVR2, MetabolomicsBasics, MethScope, MicrobTiSDA, MuTATE, NBShiny, NBShiny2, NBShiny3, NBvarsel, NRMstatsML, NeuralSens, NonProbEst, OddsPlotty, OncoSubtype, OpEnHiMR, PAGE, PEAXAI, PSor, PenalReg, PredPsych, RCTrep, RFAE, RGCCA, RISCA, RStoolbox, RaSEn, RadialVisGadgets, RankPCA, RelimpPCR, Rtropical, SAiVE, SHAPBoost, SLEMI, SLOS, SPARTAAS, SSGL, STATassist, SoftBart, TSEAL, TSGS, TrafficBDE, TransHDM, TwoCutoff, VIMPS, WRTDStidal, WaveletGBM, WaveletKNN, WaveletLSTM, WaveletML, aggTrees, ampir, assignPOP, bigPLScox, bspcov, caretEnsemble, caretForecast, caretMultimodal, caretSDM, causalQual, cdgd, classifierplots, climodr, combat.enigma, cramR, cytominer, datafsm, dfr, dissever, driveR, dtComb, evalHTE, evalITR, fairness, flevr, geomod, glmtrans, hdcate, heimdall, hypervolume, iForecast, iSFun, icardaFIGSr, idiolect, immunaut, imt, ipd, kfa, l1spectral, lboxcox, less, lilikoi, loadeR, m2b, manymodelr, matrans, mbg, mcca, meteo, mgwrsar, mikropml, mlquantify, mlspatial, mpae, mtlgmm, multiclassPairs, mxnorm, nbTransmission, nerfplus, nestedcv, noisemodel, npcs, oRaklE, omu, opImputation, outliers.ts.oga, panelWranglR, pciR, peptoolkit, pomodoro, powerPLS, pprof, predtoolsTS, priorityelasticnet, promor, rQSAR, refitME, roclab, roseRF, sMTL, sae.projection, sentometrics, sgs, shinyr, skedastic, smdi, soilassessment, spboost, specmine, spect, spexvb, sphereML, sregsurvey, ssel, ssr, stabiliser, studyStrap, survcompare, survivalSL, swag, tRigon, text2emotion, tradeoffaucdim, varEst, warmthcompetence, waves, writeAlizer.

Depended on by AutoStepwiseGLM, ClassificationEnsembles, LogisticEnsembles, MRReg, MSclassifR, MantaID, NumericEnsembles, RandPro, adabag, criticality, natstrat, stacking.

Suggested by AppliedPredictiveModeling, BMisc, BORG, DataSimilarity, DrData, Dyn4cast, ENMTools, FastImputation, FastRet, GAparsimony, Infusion, LKT, MFF, NHSRdatasets, NeuralNetTools, OpEnCAMeO, OpEnCAST, SAMtool, SmCCNet, SmartMeterAnalytics, SpoMAG, SuperLearner, SurvMetrics, UBayFS, aVirtualTwins, accuracylevel, autotab, basemodels, biomod2, biplotEZ, breakDown, broom, bundle, butcher, cat2cat, ciu, clinpubr, cobalt, condvis2, corridoR, corrselect, counterfactuals, discSurv, doParallel, doSNOW, easyalluvial, fdm2id, featR, finnts, fmeffects, fullRankMatrix, fuseMLR, futurize, gcplyr, harf, idm, iml, imputeR, iprior, labelnoise, latrend, leakr, lulcc, mand, manydata, metaforest, ml, mlS3, mlr, mlr3filters, mlr3spatiotempcv, mmb, ordinalClust, pcvr, pdp, pmml, posterior, pre, predfairness, purgeR, r2pmml, randomForestSRC, regsem, riskutility, rmlnomogram, sageR, sits, soilcnn, spFSR, spatialEco, spectacles, ssc, strip, subsemble, tornado, unifiedml, varPro, vetiver, vivid, waywiser, wconf, xplorerr.

Enhanced by bestglm, prediction.


See at CRAN