Learn R Programming

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

caret (version 6.0-92)

Classification and Regression Training

Description

Misc functions for training and plotting classification and regression models.

Copy Link

Version

Install

install.packages('caret')

Monthly Downloads

121,196

Version

6.0-92

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

April 19th, 2022

Functions in caret (6.0-92)

confusionMatrix.train

Estimate a Resampled Confusion Matrix
format.bagEarth

Format 'bagEarth' objects
cox2

COX-2 Activity Data
gafs.default

Genetic algorithm feature selection
confusionMatrix

Create a confusion matrix
calibration

Probability Calibration Plot
caretSBF

Selection By Filtering (SBF) Helper Functions
cars

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

Bagged FDA
dhfr

Dihydrofolate Reductase Inhibitors Data
findCorrelation

Determine highly correlated variables
diff.resamples

Inferential Assessments About Model Performance
avNNet

Neural Networks Using Model Averaging
index2vec

Convert indicies to a binary vector
gafs_initial

Ancillary genetic algorithm functions
getSamplingInfo

Get sampling info from a train model
knn3

k-Nearest Neighbour Classification
findLinearCombos

Determine linear combinations in a matrix
bagEarth

Bagged Earth
featurePlot

Wrapper for Lattice Plotting of Predictor Variables
bag

A General Framework For Bagging
dotPlot

Create a dotplot of variable importance values
plot.gafs

Plot Method for the gafs and safs Classes
densityplot.rfe

Lattice functions for plotting resampling results of recursive feature selection
oil

Fatty acid composition of commercial oils
scat

Morphometric Data on Scat
resampleSummary

Summary of resampled performance estimates
createDataPartition

Data Splitting functions
resampleHist

Plot the resampling distribution of the model statistics
predictors

List predictors used in the model
print.confusionMatrix

Print method for confusionMatrix
nullModel

Fit a simple, non-informative model
filterVarImp

Calculation of filter-based variable importance
knnreg

k-Nearest Neighbour Regression
train_model_list

A List of Available Models in train
icr.formula

Independent Component Regression
dummyVars

Create A Full Set of Dummy Variables
panel.needle

Needle Plot Lattice Panel
lift

Lift Plot
downSample

Down- and Up-Sampling Imbalanced Data
histogram.train

Lattice functions for plotting resampling results
maxDissim

Maximum Dissimilarity Sampling
plotClassProbs

Plot Predicted Probabilities in Classification Models
pcaNNet

Neural Networks with a Principal Component Step
nearZeroVar

Identification of near zero variance predictors
learning_curve_dat

Create Data to Plot a Learning Curve
segmentationData

Cell Body Segmentation
panel.lift2

Lattice Panel Functions for Lift Plots
defaultSummary

Calculates performance across resamples
plsda

Partial Least Squares and Sparse Partial Least Squares Discriminant Analysis
oneSE

Selecting tuning Parameters
plotObsVsPred

Plot Observed versus Predicted Results in Regression and Classification Models
ggplot.rfe

Plot RFE Performance Profiles
summary.bagEarth

Summarize a bagged earth or FDA fit
gafsControl

Control parameters for GA and SA feature selection
pottery

Pottery from Pre-Classical Sites in Italy
extractPrediction

Extract predictions and class probabilities from train objects
predict.knnreg

Predictions from k-Nearest Neighbors Regression Model
tecator

Fat, Water and Protein Content of Meat Samples
update.safs

Update or Re-fit a SA or GA Model
safs_initial

Ancillary simulated annealing functions
update.train

Update or Re-fit a Model
resamples

Collation and Visualization of Resampling Results
rfe

Backwards Feature Selection
prcomp.resamples

Principal Components Analysis of Resampling Results
mdrr

Multidrug Resistance Reversal (MDRR) Agent Data
modelLookup

Tools for Models Available in train
dotplot.diff.resamples

Lattice Functions for Visualizing Resampling Differences
ggplot.train

Plot Method for the train Class
plot.varImp.train

Plotting variable importance measures
predict.knn3

Predictions from k-Nearest Neighbors
predict.gafs

Predict new samples
trainControl

Control parameters for train
print.train

Print Method for the train Class
recall

Calculate recall, precision and F values
SLC14_1

Simulation Functions
spatialSign

Compute the multivariate spatial sign
negPredValue

Calculate sensitivity, specificity and predictive values
var_seq

Sequences of Variables for Tuning
safs

Simulated annealing feature selection
rfeControl

Controlling the Feature Selection Algorithms
preProcess

Pre-Processing of Predictors
sbf

Selection By Filtering (SBF)
thresholder

Generate Data to Choose a Probability Threshold
predict.bagEarth

Predicted values based on bagged Earth and FDA models
sbfControl

Control Object for Selection By Filtering (SBF)
xyplot.resamples

Lattice Functions for Visualizing Resampling Results
train

Fit Predictive Models over Different Tuning Parameters
varImp

Calculation of variable importance for regression and classification models
varImp.gafs

Variable importances for GAs and SAs
as.matrix.confusionMatrix

Confusion matrix as a table
BloodBrain

Blood Brain Barrier Data
Sacramento

Sacramento CA Home Prices
caret-internal

Internal Functions
BoxCoxTrans

Box-Cox and Exponential Transformations
GermanCredit

German Credit Data
classDist

Compute and predict the distances to class centroids
pickSizeBest

Backwards Feature Selection Helper Functions