stan4bart icon indicating copy to clipboard operation
stan4bart copied to clipboard

Saving Model to a *.RData object

Open Pentaonia opened this issue 1 year ago • 1 comments

Hi,

how do I save the model to an *.RData object so that I can perform a prediction after reloading? In the dbarts package you have to touch the pointer via invisible(model$fit$state) to store it as an internal R object. Is there something similar to your package? sampler.bart and range.bart are used for prediction as mentioned but invisible(model$sampler.bart) does not bring the desired success.

Best and thanks again Louis

Pentaonia avatar May 01 '23 12:05 Pentaonia

It hasn't been implemented yet, as I would have to write something to serialize the C++ internal state to R objects.

vdorie avatar May 01 '23 12:05 vdorie