Skip to content

Commit

Permalink
Pin numpy dependency (#3441)
Browse files Browse the repository at this point in the history
* Pin numpy dependency

* update
  • Loading branch information
novaturient95 authored Nov 8, 2024
1 parent 47af267 commit 7441bc4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tutorials/get-started-notebooks/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,32 @@
" ##########################\n",
" # Registering the model to the workspace\n",
" print(\"Registering the model via MLFlow\")\n",
"\n",
" # pin numpy\n",
" conda_env = {\n",
" 'name': 'mlflow-env',\n",
" 'channels': ['conda-forge'],\n",
" 'dependencies': [\n",
" 'python=3.10.15',\n",
" 'pip<=21.3.1',\n",
" {\n",
" 'pip': [\n",
" 'mlflow==2.17.0',\n",
" 'cloudpickle==2.2.1',\n",
" 'pandas==1.5.3',\n",
" 'psutil==5.8.0',\n",
" 'scikit-learn==1.5.2',\n",
" 'numpy==1.26.4',\n",
" ]\n",
" }\n",
" ],\n",
" }\n",
"\n",
" mlflow.sklearn.log_model(\n",
" sk_model=clf,\n",
" registered_model_name=args.registered_model_name,\n",
" artifact_path=args.registered_model_name,\n",
" conda_env=conda_env,\n",
" )\n",
"\n",
" # Saving the model to a file\n",
Expand Down

0 comments on commit 7441bc4

Please sign in to comment.