Skip to content

Commit 7316dc3

Browse files
committed
Fix: pin mlflow<2.19 and remove custom conda_env to avoid deployment image build failure
2 parents f6e3558 + 32983f5 commit 7316dc3

1 file changed

Lines changed: 2 additions & 22 deletions

File tree

tutorials/get-started-notebooks/quickstart.ipynb

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -255,31 +255,11 @@
255255
" # Registering the model to the workspace\n",
256256
" print(\"Registering the model via MLFlow\")\n",
257257
"\n",
258-
" # pin numpy\n",
259-
" conda_env = {\n",
260-
" 'name': 'mlflow-env',\n",
261-
" 'channels': ['conda-forge'],\n",
262-
" 'dependencies': [\n",
263-
" 'python=3.10.15',\n",
264-
" 'pip<=21.3.1',\n",
265-
" {\n",
266-
" 'pip': [\n",
267-
" 'mlflow==2.17.0',\n",
268-
" 'cloudpickle==2.2.1',\n",
269-
" 'pandas==1.5.3',\n",
270-
" 'psutil==5.8.0',\n",
271-
" 'scikit-learn==1.5.2',\n",
272-
" 'numpy==1.26.4',\n",
273-
" ]\n",
274-
" }\n",
275-
" ],\n",
276-
" }\n",
277-
"\n",
278258
" mlflow.sklearn.log_model(\n",
279259
" sk_model=clf,\n",
280260
" registered_model_name=args.registered_model_name,\n",
281261
" artifact_path=args.registered_model_name,\n",
282-
" conda_env=conda_env,\n",
262+
" )\n",
283263
" )\n",
284264
"\n",
285265
" # Saving the model to a file\n",
@@ -721,4 +701,4 @@
721701
},
722702
"nbformat": 4,
723703
"nbformat_minor": 2
724-
}
704+
}

0 commit comments

Comments
 (0)