Questions tagged [mlflow]

Use this tag for questions about the machine-learning platform MLflow

722 questions
6
votes
3 answers

MLFlow - How to migrate or copy a run from one experiment to other?

I am trying to move a run in MLflow from one experiment to another. Does anybody know if its possible? If yes, how? (I use Python API)
Kıvanç Yüksel
  • 701
  • 7
  • 17
6
votes
2 answers

Set user_id in Mlflow

I am running MLflow with several users can instanciate experiments. Is there any way to override user_id which is set to system username? Looking for a solution which works with start_run block. Any ideas? with mlflow.start_run():
Martin Gran
  • 241
  • 1
  • 2
  • 5
6
votes
2 answers

MLflow change experiment id

I am unable to change the experiment id of a MLflow experiment. Currently, I am running the following code to create an experiment before logging: mlflow.set_experiment(experiment_name="my_model") with mlflow.start_run(): #train model Doing so…
MDan
  • 295
  • 2
  • 13
6
votes
2 answers

mlflow R installation MLFLOW_PYTHON_BIN

I am trying to install mlflow in R and im getting this error message saying mlflow::install_mlflow() Error in mlflow_conda_bin() : Unable to find conda binary. Is Anaconda installed? If you are not using conda, you can set the…
user10486706
  • 137
  • 9
6
votes
3 answers

How to get current run_id inside of mlflow.start_run()?

mlflow.active_run() returns nothing so I can't just use current_rui_id = mlflow.active_run().info.run_id I have to get run_id inside of this construction for being able to continue logging parameters, metrics and artifacts inside of another block…
OnlyDryClean Codzy
  • 943
  • 1
  • 10
  • 19
5
votes
1 answer

When to use mlflow.set_tag() vs mlflow.log_params()?

I am confused about the usecase of mlflow.set_tag() vs mlflow.log_params() as both takes key and value pair. Currently, I use mlflow.set_tag() to set tags for data version, code version, etc and mlflow.log_params() to set model training parameters…
Manas
  • 888
  • 10
  • 20
5
votes
1 answer

how to save mlflow metrics and paramters to an s3 bucket without a server?

I want to save the parameters and metrics gotten from mlflow into an s3 bucket. Usually I get these from setting the tracking_uri in mlflow and that saves it on a server but I can't have a server in this case(was told no) and just want to store my…
5
votes
2 answers

How can I load the latest model version from MLflow model registry?

I can load a specific version of a model using the mlflow client: import mlflow model_version = 1 model = mlflow.pyfunc.load_model( model_uri=f"models:/c3760a15e6ac48f88ad7e5af940047d4/{model_version}" ) But is there a way to load the latest…
Vincent Claes
  • 3,960
  • 3
  • 44
  • 62
5
votes
0 answers

How to download an artifact from MLFlow using REST?

I see the Python API: download_artifacts(run_id: str, path: str, dst_path: Optional[str] = None) → str (here), but I can't find the equivalent in REST.
Nestor
  • 13,706
  • 11
  • 78
  • 119
5
votes
2 answers

How to download artifacts from mlflow in python

I am creating an mlflow experiment which logs a logistic regression model together with a metric and an artifact. import mlflow from sklearn.linear_model import LogisticRegression from sklearn.metrics import precision_recall_fscore_support with…
quant
  • 4,062
  • 5
  • 29
  • 70
5
votes
2 answers

How to add more metrics to a finished MLflow run?

Once an MLflow run is finished, external scripts can access its parameters and metrics using python mlflow client and mlflow.get_run(run_id) method, but the Run object returned by get_run seems to be read-only. Specifically, .log_param .log_metric,…
mirekphd
  • 4,799
  • 3
  • 38
  • 59
5
votes
4 answers

No Artifacts Recorded MLFlow

I am unable to store, view, and retrieve the artifacts in MLFlow. The artifact folder is empty irrespective of creating a new experiment and assign proper experiment name and location. Server: mlflow server --backend-store-uri mlruns/…
Floura Angel
  • 99
  • 2
  • 6
5
votes
1 answer

MLflow: Why can't backend-store-uri be an s3 location?

I'm new to mlflow and I can't figure out why the artifact store can't be the same as the backend store? The only reason I can think of is to be able to query the experiments with SQL syntax... but since we can interact with the runs using mlflow ui…
Kiran Sanjeevan
  • 149
  • 1
  • 7
5
votes
1 answer

Deploying MLflow Model without Conda environment

Currently working on deploying my MLflow Model in a Docker container. The Docker container is set up with all the necessary dependencies for the model so it seems redundant for MLflow to also then create/activate a conda environment for the model.…
Conor
  • 111
  • 2
  • 6
5
votes
1 answer

MLflow: active run ID does not match environment run ID

OS: Ubuntu 18 Python: Python 3.6 MLflow: 1.4 I'm trying to get MLflow Projects to run. Here is my project: MLflow conda.yaml main.py prep_data.py learn.py List item The project is heavily based up on this repo:…
Raphael Hippe
  • 4,535
  • 4
  • 13
  • 17
1 2
3
48 49