Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug of pareto front graph #211

Merged
merged 1 commit into from
Apr 21, 2022
Merged

Fix bug of pareto front graph #211

merged 1 commit into from
Apr 21, 2022

Conversation

c-bata
Copy link
Member

@c-bata c-bata commented Apr 21, 2022

Contributor License Agreement

This repository (optuna-dashboard) and Goptuna share common code.
This pull request may therefore be ported to Goptuna.
Make sure that you understand the consequences concerning licenses and check the box below if you accept the term before creating this pull request.

  • I agree this patch may be ported to Goptuna by other Goptuna contributors.

Reference Issues/PRs

Fixes #206

What does this implement/fix? Explain your changes.

Steps to reproduce:

$ python -c "import optuna; print(optuna.version.__version__)"
3.0.0b0
$ optuna-dashboard --version
0.6.3
$ cat example_failure.py
import optuna


def objective(trial):
    x = trial.suggest_uniform('x', -10, 10)
    y = trial.suggest_uniform('y', -10, 10)
    z = trial.suggest_uniform('z', -10, 10)
    return (x - 2) ** 2, (y - 2) ** 2, (z - 2) ** 2

if __name__ == "__main__":
    sampler = optuna.samplers.TPESampler(n_startup_trials=10, n_ei_candidates=24)
    for i in range(0, 10):
        study = optuna.create_study(storage="sqlite:///multiobjective-failure-db.sqlite3", study_name="issue-206", directions=['minimize','minimize','minimize'], load_if_exists=True)
        study.optimize(objective, n_trials=3)
$ python example_failure.py  # then press Ctrl-C immediately
$ optuna-dashboard sqlite:///multiobjective-failure-db.sqlite3
Before After
Screenshot 2022-04-21 10 59 06 Screenshot 2022-04-21 11 27 06

@c-bata c-bata mentioned this pull request Apr 21, 2022
@c-bata c-bata merged commit 2904c79 into main Apr 21, 2022
@c-bata c-bata deleted the fix-issue-206 branch April 21, 2022 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error of optuna-dashboard
1 participant