xorbits.xgboost.XGBRegressor.save_model#

XGBRegressor.save_model(fname: Union[str, os.PathLike]) None#

Save the model to a file.

The model is saved in an XGBoost internal format which is universal among the various XGBoost interfaces. Auxiliary attributes of the Python Booster object (such as feature_names) will not be saved when using binary format. To save those attributes, use JSON/UBJ instead. See Model IO for more info.

model.save_model("model.json")
# or
model.save_model("model.ubj")
Parameters

fname – Output file name

This docstring was copied from xgboost.sklearn.XGBRegressor.