Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将MLfLow与私有git存储库一起使用?_Git_Gitlab_Databricks_Mlflow - Fatal编程技术网

如何将MLfLow与私有git存储库一起使用?

如何将MLfLow与私有git存储库一起使用?,git,gitlab,databricks,mlflow,Git,Gitlab,Databricks,Mlflow,当源代码存储在git公共存储库中时,我测试了MLflow实验。示例命令如下所示 mlflow run https://github.com/amesar/mlflow-fun.git#examples/hello_world \ --experiment-id=2019 \ -Palpha=100 -Prun_origin=GitRun -Plog_artifact=True 然而,当我提供一个内部(私有)git存储库链接而不是public-MLflow重定向到登录url时,执行就会像这

当源代码存储在git公共存储库中时,我测试了
MLflow
实验。示例命令如下所示

mlflow run  https://github.com/amesar/mlflow-fun.git#examples/hello_world \
 --experiment-id=2019 \
 -Palpha=100 -Prun_origin=GitRun -Plog_artifact=True
然而,当我提供一个内部(私有)git存储库链接而不是public-MLflow重定向到登录url时,执行就会像这样失败

git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git fetch -v origin
stderr: 'fatal: unable to update url base from redirection:
asked for: https://gitlab-master.companyname.com/myusername/project_name
/tree/master/models/myclassifier/info/refs?service=git-upload-pack
redirect: https://gitlab-master.company.com/users/sign_in'

有没有办法将git帐户的凭据与MLflow通信?

您必须提供个人访问令牌作为url的一部分:

mlflow run https://<YOUR_ACCESS_TOKEN>@github.com/amesar/mlflow-fun.git#examples/hello_world
mlflow运行https://@github.com/amesar/mlflow fun.git#examples/hello_world
您可以在此处生成令牌: