| save_json | R Documentation |
Serializes a pptr or pprf model to JSON format compatible
with the C++ CLI. The JSON includes the model structure, group labels,
training parameters, and optionally variable importance metrics.
save_json(model, path, ...)
## S3 method for class 'ppmodel'
save_json(model, path, include_metrics = TRUE, ...)
model |
A |
path |
File path to write the JSON to. |
... |
Additional arguments (currently unused). |
include_metrics |
If |
Invisibly returns the file path that was written (a length-one
character string). Called for its side effect of serializing model
to a JSON file at path.
load_json, pptr, pprf
model <- pptr(Species ~ ., data = iris, seed = 0)
path <- tempfile(fileext = ".json")
save_json(model, path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.