optuna / optuna-dashboard

Real-time Web Dashboard for Optuna.
https://optuna-dashboard.readthedocs.io/en/latest/
Other
503 stars 83 forks source link

Running trials not showing in the Timeline graph #820

Closed mikazlopes closed 6 months ago

mikazlopes commented 6 months ago

Description

In the Timeline graph, the Trials status that completed, were pruned or failed, displays correctly with the correct duration in terms of bar length. The running trials are not displayed, it is just an empty space, they eventually show when they complete, fail or are pruned.

image

How to Reproduce

Start the Trials and check the Timeline horizontal bar graph in the dashboard. Trials only start showing if they fail, are completed or are pruned.

Python version

3.10

Optuna version

3.5.0

optuna-dashboard version or git revision

0.14.0

Web browser

Same behavior on all browsers

nabenabe0928 commented 6 months ago

Thank you for the report, and fortunately, this issue was already solved in this PR:

mikazlopes commented 6 months ago

Thank you for the quick reply

mikazlopes commented 6 months ago

Quick question the pip install, is it for optuna-integration or optuna-dashboard? It should be optuna-dashboard right?

Update:

I did the install command using optuna-dashboard and ran it.

The dashboard stays stuck saying loading and I had this line on my console

optuna>=3.6.0 is required for PedAnovaImportanceEvaluator.

uninstalled and installed 0.14 and it is working again. I guess this dev version requires me to also get the latest dev from optuna and build it.

nabenabe0928 commented 6 months ago

@mikazlopes Sorry, it was optuna-dashboard not optuna-integration.

The dashboard stays stuck saying loading and I had this line on my console

Hm, it works in my environment...

$ python -c "import optuna_dashboard; print(optuna_dashboard.__version__)"
optuna>=3.6.0 is required for PedAnovaImportanceEvaluator.
0.14.0

$ optuna-dashboard sqlite:///dev-test.db
optuna>=3.6.0 is required for PedAnovaImportanceEvaluator.
[2024-03-05 04:00:00 +0100] [13234] [INFO] Starting gunicorn 20.0.4
[2024-03-05 04:00:00 +0100] [13234] [INFO] Listening at: http://127.0.0.1:8080 (13234)
[2024-03-05 04:00:00 +0100] [13234] [INFO] Using worker: threads
[2024-03-05 04:00:00 +0100] [13256] [INFO] Booting worker with pid: 13256

$ python -c "import optuna; print(optuna.__version__)"
3.5.0

Did you make sure that your local host 8080 was not in use when you tried launching the dashboard?

It would be helpful if you could provide me with an example code/command to reproduce your issue.

c-bata commented 6 months ago

@mikazlopes @nabenabe0928 Thank you for trying out the Optuna Dashboard!

Actually, the command pip install git+https://github.com/optuna/optuna-dashboard@main doesn't work as it stands because Optuna Dashboard requires a pre-built JavaScript file. You'll have to wait for the next minor release, or alternatively, you can use the development version in the following steps:

$ git clone git@github.com:optuna/optuna-dashboard.git
$ cd optuna-dashboard/
$ npm install
$ npm run build:dev
$ pip install .

Please refer to CONTRIBUTING.md for further details.

nabenabe0928 commented 6 months ago

@c-bata Thank you for your comment and sorry for the confusion, @mikazlopes ..!