[英]Unable to access to mlflow ui
按照https://www.mlflow.org/docs/latest/quickstart.html和https://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
但是當啟動ui mlflow 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.
出了什么問題以及如何解決這個問題?
謝謝
有許多不同的問題可能會或可能不會發生。 您最好的選擇是進行簡單的故障排除。 看到你在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
"""
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}"
]
mlflow/mlflow/server/js/package.json
- 第 37-44 行
與您的設置相比,確保您的文件位於正確的目錄中,我相信它會解決問題。
在 docker 容器中,添加--host 0.0.0.0
解決了我的問題。 使用 mlflow 1.17.0
mlflow ui --host 0.0.0.0
https://github.com/mlflow/mlflow/issues/109#issuecomment-404146077
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.