[RFC] Show progress bar based on `timeout`
See original GitHub issueMotivation
The current study.optimize
shows the progress bar when we specify the number of trials. We can show the progress bar based on the timeout
value as well.
Note that before implementing this feature, we need to decide the priority of n_trials
and timeout
. When we specify both values as not None
values, there are two ways to show the progress bar.
Moreover, we need to discuss the case when both None
. I suppose not showing the progress bar makes sense when both are None
.
Description
- Show progress bar using
timeout
value. - Add test by following https://github.com/optuna/optuna/pull/2900
Alternatives (optional)
Additional context (optional)
We might need to support the n_jobs!=1
case depending on https://github.com/optuna/optuna/issues/2957.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
RFC 3261 SIP: Session Initiation Protocol - IETF
The transaction layer handles application-layer retransmissions, matching of responses to requests, and application-layer timeouts. Any task that a user agent ...
Read more >Can I display $timeout value in progress bar? - Stack Overflow
If what you want is after starting a $timeout, find out how long it has left - then the answer is no. It...
Read more >RFC 2543: SIP: Session Initiation Protocol
1 INVITE The INVITE method indicates that the user or service is being invited to participate in a session. · 2 ACK The...
Read more >curl.1 the man page
curl normally displays a progress meter during operations, indicating the amount of transferred data, transfer speeds and estimated time left, etc. The progress...
Read more >wget(1) - Linux manual page - man7.org
That setting may be overridden from the command line. For example, to force the bar output without scrolling, use --progress=bar:force:noscroll. --show-progress ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@toshihikoyanase suggested using only
n_trials
: the first candidate. A user wants to perform optimisationn_trials
times ideally but, to avoid taking too much to perform optimisation, he/she specifiestimeout
at the same time. Indeed, I saw such a setting in a machine learning paper, so his suggestion is supposed to be natural.So how about implementing candidate 1 at first? If the optuna community prefers the last candidates to the first one or sends feedback to us, we can change the logic.
Thanks, @toshihikoyanase for your comment.
Sure, I’ll prioritize
n_trials
then! Will come back with implementation after the weekend.