XGBoost support #4204
Labels
area/models
MLmodel format, model serialization/deserialization, flavors
area/tracking
Tracking service, tracking client APIs, autologging
bug
Something isn't working
Thank you for submitting an issue. Please refer to our issue policy for additional information about bug reports. For help with debugging your code, please refer to Stack Overflow.
Please fill in this bug report template to ensure a timely and thorough response.
Willingness to contribute
The MLflow Community encourages bug fix contributions. Would you or another member of your organization be willing to contribute a fix for this bug to the MLflow code base?
System information
mlflow --version
): 1.14.1Describe the problem
Hi,
I am using a Scikit-Learn wrapper for XGBoost (XGBRegressor).
Now when logging the model with mlflow (mlflow.xgboost.log_model), it crashes as anticipated by the official documentation:
https://www.mlflow.org/docs/latest/python_api/mlflow.xgboost.html
I noticed that if I use mlflow.sklearn.log_model instead, the artifact gets saved as expected.
Obviously if I instead use a RandomForest, then mlflow.sklearn.log_model works perfectly as expected, so again my issue is to log the XGBRegressor model.
Code to reproduce issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
mlflow.xgboost.log_model(pipeline, "model") (where pipeline combines transformers and the XGBRegressor)
Other info / logs
--> 153 xgb_model.save_model(model_data_path)
154
155 conda_env_subpath = "conda.yaml"
AttributeError: 'Pipeline' object has no attribute 'save_model'
What component(s), interfaces, languages, and integrations does this bug affect?
Components
area/artifacts
: Artifact stores and artifact loggingarea/model-registry
: Model Registry service, APIs, and the fluent client calls for Model RegistryThe text was updated successfully, but these errors were encountered: