I am trying to use mlflow
to save a model and then load it later to make predictions.
I'm using a xgboost.XGBRegressor
model and its sklearn functions .predict()
and .predict_proba()
to make predictions but it turns out that mlflow
doesn't support models that implements the sklearn API, so when loading the model later from mlflow, mlflow returns an instance of xgboost.Booster
, and it doesn't implements the .predict()
or .predict_proba()
functions.
Is there a way to convert a xgboost.Booster
back into a xgboost.sklearn.XGBRegressor
object that implements the sklearn API functions?