verticapy.machine_learning.vertica.preprocessing.OneHotEncoder.to_memmodel¶
- OneHotEncoder.to_memmodel() OneHotEncoder¶
Converts the model to an InMemory object that can be used for different types of predictions.
Returns¶
- InMemoryModel
Representation of the model.
Examples¶
If we consider that you’ve built a model named
model, then it is easy to export it using the following syntax.model.to_memmodel()
Note
MemModelobjects serve as in-memory representations of machine learning models. They can be used for both in-database and in-memory prediction tasks. These objects can be pickled in the same way that you would pickle ascikit-learnmodel.Note
Look at
OneHotEncoderfor more information.