rpf_marshal() converts an rpf object into a plain R list safe for
saveRDS(); rpf_unmarshal() reverses it. The C++ forest behind an rpf
object does not survive R serialization, so this explicit round-trip is
required to store or transfer fitted models.
Arguments
- x
An object of class
rpf.- include_data
[FALSE]: Store training data in the blob, enablingpurify()after restoring.- blob
An object of class
rpf_marshaledcreated byrpf_marshal().
Value
rpf_marshal() returns a list of class rpf_marshaled;
rpf_unmarshal() returns an object of class rpf.