Save a model to a JSON file.
save_json.RdSerializes 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.
Usage
save_json(model, path, ...)
# S3 method for class 'ppmodel'
save_json(model, path, include_metrics = TRUE, ...)Arguments
- model
A
pptrorpprfmodel (inheriting fromppmodel).- path
File path to write the JSON to.
- ...
Additional arguments (currently unused).
- include_metrics
If
TRUE(default), include variable importance and (for forests) OOB error in the output. Set toFALSEto save only the model structure and metadata.