learnersize
Description
returns the compact size (in bytes) of the trained machine learning model object
size
= learnersize(Mdl
)Mdl
. If Mdl
is compact or has no supported
compact object version, learnersize
returns its actual size. Otherwise,
learnersize
returns the size of the compact version of
Mdl
.
returns the model size of the specified type. If you specify
size
= learnersize(Mdl
,SizeType=type
)type
="coder"
and Mdl
is
supported for code generation, learnersize
returns the approximate size
of Mdl
(in bytes) in C/C++ code generated by saveLearnerForCoder
and codegen
(MATLAB Coder).
Examples
Input Arguments
Version History
Introduced in R2024b
See Also
saveLearnerForCoder
| codegen
(MATLAB Coder)