View source: R/lgb.make_serializable.R
lgb.make_serializable | R Documentation |
If a LightGBM model object was produced with argument 'serializable=FALSE', the R object will not
be serializable (e.g. cannot save and load with saveRDS
and readRDS
) as it will lack the raw bytes
needed to reconstruct its underlying C++ object. This function can be used to forcibly produce those serialized
raw bytes and make the object serializable. Note that the object will be modified in-place.
New in version 4.0.0
lgb.make_serializable(model)
model |
|
lgb.Booster
(the same 'model' object that was passed as input, as invisible).
lgb.restore_handle, lgb.drop_serialized.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.