savePlpModel | R Documentation |
Saves the plp model
savePlpModel(plpModel, dirPath)
plpModel |
A trained classifier returned by running |
dirPath |
A location to save the model to |
Saves the plp model to a user specificed folder
The directory path where the model was saved
data("simulationProfile")
plpData <- simulatePlpData(simulationProfile, n = 1000)
saveLoc <- file.path(tempdir(), "savePlpModel")
plpResult <- runPlp(plpData, outcomeId = 3, saveDirectory = saveLoc)
path <- savePlpModel(plpResult$model, file.path(saveLoc, "savedModel"))
# show the saved model
dir(path, full.names = TRUE)
# clean up
unlink(saveLoc, recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.