Given a CuML model, serialize its state into a connection.
cuml_serialize(model, connection = NULL, ...)cuml_serialise(model, connection = NULL, ...)
The model object.
An open connection or NULL
. If NULL
, then the
model state is serialized to a raw vector. Default: NULL.
Additional arguments to base::serialize()
.
NULL
unless connection
is NULL
, in which case
the serialized model state is returned as a raw vector.