xorbits.xgboost.XGBRegressor.load_model#

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

Load the model from a file or bytearray. Path to file can be local or as an URI.

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

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

fname – Input file name or memory buffer(see also save_raw)

This docstring was copied from xgboost.sklearn.XGBRegressor.