Purge Training Data from Models

Enables the removal of training data from fitted R models while retaining predict functionality. The purged models are more portable as their memory footprints do not scale with the training sample size.


#Overview# This package enables the removal of training data from fitted R models while retaining predict functionality. The purged models are more portable as their memory footprints do not scale with the training sample size.

#Example Usage#

x <- rnorm(1000)
y <- x + rnorm(1000)
unpurged.model <- lm(y ~ x)
purged.model <- purge(unpurged.model)
object.size(unpurged.model)
object.size(purged.model)

#Installation#

if (!require(devtools)) install.packages("devtools")
devtools:::install_github("massmutual/purge")

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("purge")

0.2.1 by Marc Maier, 10 years ago


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


Authors: Marc Maier [cre] , Chaoqun Jia [ctb] , MassMutual Advanced Analytics [aut] (http://datascience.massmutual.com)


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports methods

Suggests testthat, survival, lme4, ranger, randomForest, rpart


See at CRAN