MLflow安装后UI访问问题

问题:

在虚拟机centos环境中安装了mlflow,代码能正常运行,但在windows上一直访问不了UI http://虚拟机ip:5000

后面浏览https://github.com/mlflow/mlflow/issues受到启发,自己在同一台虚拟机上启动了一个tracking server解决了问题。

环境:

MLflow安装环境:centos6.8  Anaconda3-5.2.0-Linux-x86_64  ip:192.168.109.232

在windows上查看ui

 安装流程参考:

https://www.mlflow.org/docs/latest/quickstart.html

https://my.oschina.net/u/2306127/blog/1825690

代码运行:

#在某个目录下(我的是/home/pywork/)创建一个mlwork文件(存放运行log)
mkdir mlwork

#启动tracking server(不需要创建mlruns、artifacts文件夹,运行后会自动创建)
mlflow server --file-store /home/pywork/mlwork/mlruns --default-artifact-root /home/pywork/mlwork/artifacts --host 0.0.0.0

#另起终端,把mlflow目录下examples文件加复制到/home/pywork/mlwork目录下:
cp -rf /home/pywork/mlflow/examples /home/pywork/mlwork/

#进到/home/pywork/mlwork目录执行:
python examples/sklearn_elasticnet_wine/train.py

#在windows浏览器中输入http://192.168.109.232:5000

 如图:

猜你喜欢

转载自blog.csdn.net/qq_42189083/article/details/84190930
今日推荐