Learn R Programming

⚠️There's a newer version (6.0-94) of this package.Take me there.

caret (version 6.0-88)

Classification and Regression Training

Description

Misc functions for training and plotting classification and regression models.

Copy Link

Version

Install

install.packages('caret')

Monthly Downloads

148,125

Version

6.0-88

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

May 15th, 2021

Functions in caret (6.0-88)

BoxCoxTrans

Box-Cox and Exponential Transformations
Sacramento

Sacramento CA Home Prices
GermanCredit

German Credit Data
BloodBrain

Blood Brain Barrier Data
bagFDA

Bagged FDA
avNNet

Neural Networks Using Model Averaging
as.matrix.confusionMatrix

Confusion matrix as a table
calibration

Probability Calibration Plot
bag

A General Framework For Bagging
createDataPartition

Data Splitting functions
bagEarth

Bagged Earth
dotPlot

Create a dotplot of variable importance values
densityplot.rfe

Lattice functions for plotting resampling results of recursive feature selection
caret-internal

Internal Functions
diff.resamples

Inferential Assessments About Model Performance
dhfr

Dihydrofolate Reductase Inhibitors Data
dotplot.diff.resamples

Lattice Functions for Visualizing Resampling Differences
pickSizeBest

Backwards Feature Selection Helper Functions
confusionMatrix.train

Estimate a Resampled Confusion Matrix
cox2

COX-2 Activity Data
cars

Kelly Blue Book resale data for 2005 model year GM cars
caretSBF

Selection By Filtering (SBF) Helper Functions
format.bagEarth

Format 'bagEarth' objects
confusionMatrix

Create a confusion matrix
classDist

Compute and predict the distances to class centroids
gafs.default

Genetic algorithm feature selection
findCorrelation

Determine highly correlated variables
histogram.train

Lattice functions for plotting resampling results
findLinearCombos

Determine linear combinations in a matrix
featurePlot

Wrapper for Lattice Plotting of Predictor Variables
icr.formula

Independent Component Regression
index2vec

Convert indicies to a binary vector
knn3

k-Nearest Neighbour Classification
filterVarImp

Calculation of filter-based variable importance
gafs_initial

Ancillary genetic algorithm functions
mdrr

Multidrug Resistance Reversal (MDRR) Agent Data
modelLookup

Tools for Models Available in train
oneSE

Selecting tuning Parameters
summary.bagEarth

Summarize a bagged earth or FDA fit
downSample

Down- and Up-Sampling Imbalanced Data
panel.needle

Needle Plot Lattice Panel
ggplot.train

Plot Method for the train Class
dummyVars

Create A Full Set of Dummy Variables
pcaNNet

Neural Networks with a Principal Component Step
knnreg

k-Nearest Neighbour Regression
tecator

Fat, Water and Protein Content of Meat Samples
varImp.gafs

Variable importances for GAs and SAs
predictors

List predictors used in the model
oil

Fatty acid composition of commercial oils
rfeControl

Controlling the Feature Selection Algorithms
learning_curve_dat

Create Data to Plot a Learning Curve
varImp

Calculation of variable importance for regression and classification models
getSamplingInfo

Get sampling info from a train model
print.confusionMatrix

Print method for confusionMatrix
nullModel

Fit a simple, non-informative model
predict.bagEarth

Predicted values based on bagged Earth and FDA models
panel.lift2

Lattice Panel Functions for Lift Plots
plot.gafs

Plot Method for the gafs and safs Classes
ggplot.rfe

Plot RFE Performance Profiles
preProcess

Pre-Processing of Predictors
nearZeroVar

Identification of near zero variance predictors
safs

Simulated annealing feature selection
train_model_list

A List of Available Models in train
plotClassProbs

Plot Predicted Probabilities in Classification Models
sbf

Selection By Filtering (SBF)
sbfControl

Control Object for Selection By Filtering (SBF)
gafsControl

Control parameters for GA and SA feature selection
spatialSign

Compute the multivariate spatial sign
negPredValue

Calculate sensitivity, specificity and predictive values
safs_initial

Ancillary simulated annealing functions
extractPrediction

Extract predictions and class probabilities from train objects
plot.varImp.train

Plotting variable importance measures
update.safs

Update or Re-fit a SA or GA Model
predict.knnreg

Predictions from k-Nearest Neighbors Regression Model
maxDissim

Maximum Dissimilarity Sampling
plsda

Partial Least Squares and Sparse Partial Least Squares Discriminant Analysis
predict.gafs

Predict new samples
lift

Lift Plot
defaultSummary

Calculates performance across resamples
trainControl

Control parameters for train
resampleSummary

Summary of resampled performance estimates
resampleHist

Plot the resampling distribution of the model statistics
plotObsVsPred

Plot Observed versus Predicted Results in Regression and Classification Models
predict.knn3

Predictions from k-Nearest Neighbors
resamples

Collation and Visualization of Resampling Results
pottery

Pottery from Pre-Classical Sites in Italy
SLC14_1

Simulation Functions
update.train

Update or Re-fit a Model
rfe

Backwards Feature Selection
scat

Morphometric Data on Scat
segmentationData

Cell Body Segmentation
print.train

Print Method for the train Class
thresholder

Generate Data to Choose a Probability Threshold
prcomp.resamples

Principal Components Analysis of Resampling Results
recall

Calculate recall, precision and F values
train

Fit Predictive Models over Different Tuning Parameters
xyplot.resamples

Lattice Functions for Visualizing Resampling Results
var_seq

Sequences of Variables for Tuning