README.md

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


Try the purge package in your browser

Any scripts or data that you put into this service are public.

purge documentation built on May 2, 2019, 1:11 p.m.