Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 01:38 AM
Now you can log the model using this parameter:
mlflow.sklearn.log_model(
..., # the usual params
pyfunc_predict_fn="predict_proba"
)which will return probabilities for the first class apparently when using the model for inference (e.g. when loading it using mlflow.pyfunc.spark_udf() ).