Learn R Programming

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

caret (version 6.0-89)

Classification and Regression Training

Description

Misc functions for training and plotting classification and regression models.

Copy Link

Version

Install

install.packages('caret')

Monthly Downloads

231,168

Version

6.0-89

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Max Kuhn

Last Published

September 28th, 2021

Functions in caret (6.0-89)

avNNet

Neural Networks Using Model Averaging
BloodBrain

Blood Brain Barrier Data
bagFDA

Bagged FDA
bagEarth

Bagged Earth
GermanCredit

German Credit Data
Sacramento

Sacramento CA Home Prices
caretSBF

Selection By Filtering (SBF) Helper Functions
bag

A General Framework For Bagging
as.matrix.confusionMatrix

Confusion matrix as a table
BoxCoxTrans

Box-Cox and Exponential Transformations
calibration

Probability Calibration Plot
createDataPartition

Data Splitting functions
densityplot.rfe

Lattice functions for plotting resampling results of recursive feature selection
featurePlot

Wrapper for Lattice Plotting of Predictor Variables
filterVarImp

Calculation of filter-based variable importance
dotplot.diff.resamples

Lattice Functions for Visualizing Resampling Differences
dotPlot

Create a dotplot of variable importance values
icr.formula

Independent Component Regression
pickSizeBest

Backwards Feature Selection Helper Functions
histogram.train

Lattice functions for plotting resampling results
caret-internal

Internal Functions
findCorrelation

Determine highly correlated variables
index2vec

Convert indicies to a binary vector
classDist

Compute and predict the distances to class centroids
knn3

k-Nearest Neighbour Classification
confusionMatrix

Create a confusion matrix
findLinearCombos

Determine linear combinations in a matrix
cars

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

k-Nearest Neighbour Regression
gafs_initial

Ancillary genetic algorithm functions
dhfr

Dihydrofolate Reductase Inhibitors Data
diff.resamples

Inferential Assessments About Model Performance
confusionMatrix.train

Estimate a Resampled Confusion Matrix
cox2

COX-2 Activity Data
downSample

Down- and Up-Sampling Imbalanced Data
getSamplingInfo

Get sampling info from a train model
format.bagEarth

Format 'bagEarth' objects
dummyVars

Create A Full Set of Dummy Variables
gafs.default

Genetic algorithm feature selection
modelLookup

Tools for Models Available in train
oil

Fatty acid composition of commercial oils
nullModel

Fit a simple, non-informative model
learning_curve_dat

Create Data to Plot a Learning Curve
mdrr

Multidrug Resistance Reversal (MDRR) Agent Data
nearZeroVar

Identification of near zero variance predictors
oneSE

Selecting tuning Parameters
panel.needle

Needle Plot Lattice Panel
train_model_list

A List of Available Models in train
plotObsVsPred

Plot Observed versus Predicted Results in Regression and Classification Models
plotClassProbs

Plot Predicted Probabilities in Classification Models
maxDissim

Maximum Dissimilarity Sampling
plot.gafs

Plot Method for the gafs and safs Classes
lift

Lift Plot
predict.knn3

Predictions from k-Nearest Neighbors
ggplot.train

Plot Method for the train Class
plot.varImp.train

Plotting variable importance measures
panel.lift2

Lattice Panel Functions for Lift Plots
predict.gafs

Predict new samples
ggplot.rfe

Plot RFE Performance Profiles
predictors

List predictors used in the model
prcomp.resamples

Principal Components Analysis of Resampling Results
pottery

Pottery from Pre-Classical Sites in Italy
resamples

Collation and Visualization of Resampling Results
rfe

Backwards Feature Selection
safs_initial

Ancillary simulated annealing functions
gafsControl

Control parameters for GA and SA feature selection
defaultSummary

Calculates performance across resamples
resampleHist

Plot the resampling distribution of the model statistics
predict.knnreg

Predictions from k-Nearest Neighbors Regression Model
plsda

Partial Least Squares and Sparse Partial Least Squares Discriminant Analysis
extractPrediction

Extract predictions and class probabilities from train objects
resampleSummary

Summary of resampled performance estimates
rfeControl

Controlling the Feature Selection Algorithms
pcaNNet

Neural Networks with a Principal Component Step
print.confusionMatrix

Print method for confusionMatrix
summary.bagEarth

Summarize a bagged earth or FDA fit
tecator

Fat, Water and Protein Content of Meat Samples
safs

Simulated annealing feature selection
sbfControl

Control Object for Selection By Filtering (SBF)
preProcess

Pre-Processing of Predictors
sbf

Selection By Filtering (SBF)
predict.bagEarth

Predicted values based on bagged Earth and FDA models
print.train

Print Method for the train Class
recall

Calculate recall, precision and F values
negPredValue

Calculate sensitivity, specificity and predictive values
varImp

Calculation of variable importance for regression and classification models
thresholder

Generate Data to Choose a Probability Threshold
spatialSign

Compute the multivariate spatial sign
train

Fit Predictive Models over Different Tuning Parameters
trainControl

Control parameters for train
var_seq

Sequences of Variables for Tuning
xyplot.resamples

Lattice Functions for Visualizing Resampling Results
SLC14_1

Simulation Functions
segmentationData

Cell Body Segmentation
scat

Morphometric Data on Scat
varImp.gafs

Variable importances for GAs and SAs
update.train

Update or Re-fit a Model
update.safs

Update or Re-fit a SA or GA Model