Skip to content

Conversation

@jhaux
Copy link
Collaborator

@jhaux jhaux commented Feb 26, 2020

(Could you merge my #253 pull request first?)

The great functionality of wandb sweeps cannot be used out of the box
with edflow. The new edprep command helps with this. Now you can

  1. Define a sweep from you wandb client
  2. edprep the sweep.yaml so that it is compatible with edflow
  3. run the wandb sweep
    For more details the the docstring in edprep

There are two changes that maybe need discussion:

  1. I changed the behavior of the Template Iterator from setting the wandb project id to setdefaulting it. -> I am not sure if this introduces problems, but I have not run into any. See line 75 in edflow/iterators/template_iterator.py
  2. I moved the argument parser out of the edflow script to make it reusable and changed the type of the action arguments (-t, -d) to a custom type, which should yield the same behavior as before but also allow for the explicit passing of the boolean arguments in various forms. This is necessary, as wandb needs to get all arguments passed to edflow in a specific form, after which it will pass them explicitly as --key=value pairs. I have not encountered problems with this new handling, but would like to make sure that a second brain wraps itself around this problem.

The great functionality of wandb sweeps cannot be used out of the box
with edflow. The new `edprep` command helps with this. Now you can
1. Define a sweep from you wandb client
2. edprep the sweep.yaml so that it is compatible with edflow
3. run the wandb sweep
For more details the the docstring in edprep
@jhaux jhaux requested review from hperrot and pesser February 26, 2020 14:41
This is specific only to the --base arguemnt of the edflow and thus
edprep command. The current hack is to simpy join a list using a space.
This is hacky and will probably lead to errors in the future, should the
commandline interaface be extended.
The additional test confirms, that a mixture of wandb-type (depth by
dot) and edflow-type (depth by slash) arguments are converted to purely
edflow-type arguemnts, resulting in a correct config dict.
Copy link
Owner

@pesser pesser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, I'm looking forward to trying it! Let me know about my comment and we can merge

@pesser pesser merged commit fd8f048 into pesser:dev May 12, 2020
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.

2 participants