Hi @Sena Aslan ,
I hope you got the resolution from the prior comments.
To help others in the community, let me reiterate the solution here by jotting down the gist of my comment answer above.
To register all of these objects in the same artifact folder, you can use the mlflow.pyfunc.log_model()
method. This method logs a Python model as an MLflow artifact for the current run. You can pass the encoder, scaler, and XGBoost model objects to the MyModel
class constructor and then pass the instance of this class to the python_model
parameter of the mlflow.pyfunc.log_model()
method.
Here is an official documentation, that you can refer and modify, to meet your requirements.
Hope this helps.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful.