Learn R Programming

#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")

Copy Link

Version

Install

install.packages('purge')

Monthly Downloads

148

Version

0.2.1

License

MIT + file LICENSE

Maintainer

Marc Maier

Last Published

February 12th, 2017

Functions in purge (0.2.1)

purge

Purge training data from a model