无法访问 mlflow ui

Joh*_*odd 8 python python-3.x mlflow

通过遵循https://www.mlflow.org/docs/latest/quickstart.htmlhttps://www.mlflow.org/docs/latest/tutorial.html上的快速入门和教程,train.py 的执行有效美好的。

Elasticnet model (alpha=0.500000, l1_ratio=0.500000):
  RMSE: 0.8222428497595403
  MAE: 0.6278761410160693
  R2: 0.12678721972772622
Run Code Online (Sandbox Code Playgroud)

但是当启动 uimlflow ui并访问网页 localhost:5000 时,浏览器会抱怨

Not Found

The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
Run Code Online (Sandbox Code Playgroud)

出了什么问题以及如何解决这个问题?

谢谢

小智 2

有许多不同的问题可能会发生,也可能不会发生。最好的办法是进行简单的故障排除。我看到你在 GitHub 上的评论,所以我们尝试一个新的角度;这很可能是构建/调试文件路径或目录设置不正确。

我注意到一个名为 的文件/目录设置set_tracking_uri

def get_tracking_uri():
    """
    Returns the current tracking URI. Note that this may not correspond to the tracking URI of
    the currently active run, since the tracking URI may be updated via `set_tracking_uri`.
    :return: the tracking URI
    """
Run Code Online (Sandbox Code Playgroud)

mlflow/tracking/__init__.py- 第 52-56 行

您还可以查看package.json服务器文件路径。

 "proxy": "http://localhost:5000",
  "homepage": "/static-files",
  "jest": {
    "collectCoverageFrom": [
      "src/**/*.{js,jsx}",
      "!**/*.test.{js,jsx}",
      "!**/__tests__/*.{js,jsx}"
    ]
Run Code Online (Sandbox Code Playgroud)

mlflow/mlflow/server/js/package.json- 第 37-44 行

与您的设置相比,请确保您的文件位于正确的目录中,我确信它会解决问题。