File tree Expand file tree Collapse file tree
tutorials/get-started-notebooks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 " ,
721701 },
722702 "nbformat" : 4 ,
723703 "nbformat_minor" : 2
724- }
704+ }
You can’t perform that action at this time.
0 commit comments