Loading...

verticapy.machine_learning.vertica.ensemble.XGBRegressor.to_memmodel#

XGBRegressor.to_memmodel() XGBRegressor#

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

MemModel objects 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 a scikit-learn model.

Note

Look at XGBRegressor for more information.