Use this tag for questions about the machine-learning platform MLflow
Questions tagged [mlflow]
722 questions
2
votes
1 answer
Using code_path in mlflow.pyfunc models on Databricks
We are using Databricks over AWS infra, registering models on mlflow.
We write our in-project imports as from src.(module location) import (objects).
Following examples online, I expected that when I use mlflow.pyfunc.log_model(...,…

perfects
- 21
- 2
2
votes
0 answers
MLFlow - Experiment tracking - No such file or directory
I want to run experiment tracking on my jupyter notebooks, I've installed mlflow and have set it up as such:
Path("mlruns").mkdir(parents=True, exist_ok=True)
mlflow.set_tracking_uri("file:mlruns")
client = mlflow.MlflowClient()
experiment_id =…

João Areias
- 1,192
- 11
- 41
2
votes
1 answer
Unrecognized content type parameters: format when serving model on databricks experiement
I got this Error when serving a model into databricks using MLflow,
Unrecognized content type parameters: format. IMPORTANT: The MLflow Model scoring protocol has changed in MLflow version 2.0. If
you are seeing this error, you are likely using an…

Sara
- 353
- 1
- 3
- 13
2
votes
1 answer
Azure Databricks model serving mlflow error version
Hello or good evening everyone !
I recently wanted to use azure's registered models.
I attached my experiment to my model and launched the serving, so far so good !
The problem comes from the requests we are trying to make to this…

Akael
- 61
- 6
2
votes
0 answers
How to use mlflow spark udf with image?
I have trained a model via tensorflow using mnist data
(x_train, y_train), (x_test, y_test) = mnist.load_data()
model = tf.keras.Sequential([
tf.keras.layers.Conv2D(32, 3, activation='relu', input_shape=(28, 28, 1)),
Now I am…

olaf
- 239
- 1
- 8
2
votes
1 answer
no attribute error while importing mlflow
I get an error while importing mlflow. Googled almost whole day - didn't find anything relevant that's able to solve problem
Traceback (most recent call last):
File "", line 1, in
File…

Usingless
- 31
- 4
2
votes
0 answers
What is the difference between deploying models in MLflow and Sagemaker?
I could do
mlflow model serve -m --p 1234 --no-conda
and
mlflow sagemaker run-local -m -p 1234
Are they not the same anyway as both can do model serving so what's the hassle deploying it to Sagemaker?
I'm a beginner at this so…

Eusto
- 21
- 2
2
votes
1 answer
ValueError: Enum ErrorCode has no value defined for name '403' in mlflow.set_experiment()
I am trying to run some code to train a model, while logging my results to MLflow on Databricks. I keep getting the following error when I try to make a call to mlflow.set_experiment(),
raise ValueError('Enum {} has no value defined for name…

Minura Punchihewa
- 1,498
- 1
- 12
- 35
2
votes
1 answer
Set run description programmatically in mlflow
Similar to this question, I'd like to edit/set the description of a run via code, instead of editing it via UI.
To clarify, I don't want to set the description of my entire experiment, only of a single run.

waykiki
- 914
- 2
- 9
- 19
2
votes
1 answer
Why do I encounter "INVALID_PARAMETER VALUE" error when opening "Models" tab in MLFlow UI?
I installed mlflow via pip and opened it in the browser through the terminal. The tab Experiments displays normally; however, when I switch to Models tab, the app crashes due to the following error:
INVALID_PARAMETER_VALUE: Model registry…

Sanjin Juric Fot
- 121
- 1
- 6
2
votes
0 answers
Mlflow UI can't show artifacts
I have mlflow running on an azure VM and connected to Azure Blob as the artifact storage.
After uploading artifacts to the storage from the Client.
I tried the MLflow UI and successfully was able to show the uploaded file.
The problem happens when I…

Mohamed Nabil
- 15
- 4
2
votes
1 answer
MLFlow in container is not mapped to host port
I am learning about MLFlow and Docker Containers.
I created an ubuntu container and mapped port 5001 of the host to 5000 of the container.
docker run -it -p 5001:5000 -v D:\Docker\mlflow:/home --name mlflow ubuntu:18.04 bash
Inside the container, I…

JSVJ
- 500
- 3
- 14
2
votes
0 answers
ML Flow autolog with catboost
I am trying to use auto logging of ML Flow with catboost - but looking at the UI of the experiment (in Databricks UI) I don't see any parameters or metrics logged.
My code is:
mlflow.sklearn.autolog()
model_for_analytics =…

Gaddy
- 453
- 4
- 12
2
votes
1 answer
MLflow load model fails Python
I am trying to build an API using an MLflow model.
the funny thing is it works from one location on my PC and not from another. So, the reason for doing I wanted to change my repo etc.
So, the simple code of
from mlflow.pyfunc import…

Saugat Mukherjee
- 778
- 8
- 32
2
votes
0 answers
In mlflow, is it possible to track an artifact without having mlflow store it separately?
I am new to mlflow. I am trying to track/log some artifacts (a directory of images output by my model) such that they are affiliated with the run that generated them, and so that I can view them in the mlflow UI along with all the other tracked…

johnmday
- 33
- 6