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

Optuna integration & example script (2) #46

Merged
merged 81 commits into from
Nov 10, 2020

Conversation

keisuke-nakata
Copy link
Member

This is the same PR as #21 (The original PR was broken due to private-public migration issue).


Example script for tuning hyper parameters by Optuna.

I modified experiments/train_agent_*.py to return statistics (and raise optuna.TrialPruned exception) which is needed for calculating a score of runs (trials) / pruning trials.

@pfn-ci-bot
Copy link

Successfully created a job for commit 2190fc8:

@keisuke-nakata
Copy link
Member Author

@muupan I fixed PR:

  • Make Optuna dependency optional.
  • Collects/returns evaluation stats only.
  • Unsupport collecting eval stats for train_agent_async.
    • Currently the collected eval stats are only used for optuna-integration script (optuna_dqn_obs1d.py).
    • Optuna-integration script also requires evaluation_hooks to raise TrialPruned exception for notifying optuna to prune the trial.
    • It's a bit difficult to re-raise an exception from subprocess (async-mode).

…ntegration2

# Conflicts:
#	pfrl/experiments/__init__.py
#	setup.cfg
@pfn-ci-bot
Copy link

Successfully created a job for commit a5f7007:

@pfn-ci-bot
Copy link

Successfully created a job for commit 5223b4d:

examples/optuna/README.md Outdated Show resolved Hide resolved
examples/optuna/README.md Outdated Show resolved Hide resolved
examples/optuna/optuna_dqn_obs1d.py Outdated Show resolved Hide resolved
examples/optuna/optuna_dqn_obs1d.py Outdated Show resolved Hide resolved
examples/optuna/README.md Outdated Show resolved Hide resolved
examples/optuna/optuna_dqn_obs1d.py Outdated Show resolved Hide resolved
examples/optuna/optuna_dqn_obs1d.py Outdated Show resolved Hide resolved
pfrl/experiments/train_agent_async.py Outdated Show resolved Hide resolved
pfrl/experiments/train_agent_batch.py Show resolved Hide resolved
examples/optuna/README.md Outdated Show resolved Hide resolved
keisuke-nakata and others added 9 commits November 10, 2020 13:40
Co-authored-by: Yasuhiro Fujita <muupan@gmail.com>
Co-authored-by: Yasuhiro Fujita <muupan@gmail.com>
Co-authored-by: Yasuhiro Fujita <muupan@gmail.com>
Co-authored-by: Yasuhiro Fujita <muupan@gmail.com>
Co-authored-by: Yasuhiro Fujita <muupan@gmail.com>
Co-authored-by: Yasuhiro Fujita <muupan@gmail.com>
Co-authored-by: Yasuhiro Fujita <muupan@gmail.com>
Co-authored-by: Yasuhiro Fujita <muupan@gmail.com>
@pfn-ci-bot
Copy link

Successfully created a job for commit 91e585e:

@keisuke-nakata
Copy link
Member Author

@muupan Sorry, I have added small changes since your last review:

@pfn-ci-bot
Copy link

Successfully created a job for commit 317589b:

@muupan
Copy link
Member

muupan commented Nov 10, 2020

Those changes look ok.

@muupan muupan merged commit b9d2ee4 into pfnet:master Nov 10, 2020
@keisuke-nakata keisuke-nakata deleted the optuna-integration2 branch November 10, 2020 06:08
@muupan muupan added the enhancement New feature or request label Dec 11, 2020
@muupan muupan added this to the v0.2.0 milestone Dec 14, 2020
@muupan muupan added the example Modification or addition of examples label Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request example Modification or addition of examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants